Skip to content

Commit

Permalink
Switch tab expansion ON/OFF via Tabexpand
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Rodhelind committed May 11, 2017
1 parent 31f188e commit 3678317
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cmd/acme/exec.c
Expand Up @@ -1374,7 +1374,14 @@ tabexpand(Text *et, Text *_0, Text *argt, int _1, int _2, Rune *arg, int narg)
return;
w = et->w;

printf("tabexpand: %d\n", w->tabexpand);
if (w->tabexpand) {
w->tabexpand = 0;
warning(nil, "%.*S: Tabexpand OFF\n", w->body.file->nname, w->body.file->name);
} else {
w->tabexpand = 1;
warning(nil, "%.*S: Tabexpand ON\n", w->body.file->nname, w->body.file->name);
}
/* printf("tabexpand: %d\n", w->tabexpand); */
}

void
Expand Down

0 comments on commit 3678317

Please sign in to comment.