aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/acme/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index faa87d99..e1b52859 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -759,6 +759,8 @@ texttype(Text *t, Rune r)
textshow(t, t->file->b.nc, t->file->b.nc, FALSE);
return;
case 0x09: /* ^I (TAB) */
+ if(t->what!=Body)
+ break;
if(t->w->tabexpand == TRUE){
for(i=0; i < t->w->body.tabstop; i++){
texttype(t, ' ');