diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-05-11 19:42:34 +0200 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-05-11 19:42:34 +0200 |
commit | 36783170cc8238122403427caaadb5a9f03b7808 (patch) | |
tree | d172a0e1d7afe725fdfc9ed4d75e732afadd9715 /src/cmd/acme | |
parent | 31f188eef9af8a8ca3a7c493f18fcc74c00861a3 (diff) | |
download | plan9port-36783170cc8238122403427caaadb5a9f03b7808.tar.gz plan9port-36783170cc8238122403427caaadb5a9f03b7808.tar.bz2 plan9port-36783170cc8238122403427caaadb5a9f03b7808.zip |
Switch tab expansion ON/OFF via Tabexpand
Diffstat (limited to 'src/cmd/acme')
-rw-r--r-- | src/cmd/acme/exec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c index e0dcb191..79a79ba4 100644 --- a/src/cmd/acme/exec.c +++ b/src/cmd/acme/exec.c @@ -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 |