From 36783170cc8238122403427caaadb5a9f03b7808 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Thu, 11 May 2017 19:42:34 +0200 Subject: Switch tab expansion ON/OFF via Tabexpand --- src/cmd/acme/exec.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3