From 31f188eef9af8a8ca3a7c493f18fcc74c00861a3 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Thu, 11 May 2017 08:04:35 +0200 Subject: Add support for tab expansion (because everyone else is stupid and I am forced to follow along) Tab expansion inserts spaces instead of TAB character. Number of spaces is dependent upon your current tab stop setting, which can be changed by running "Tab n". As of now, it's not possible to turn it on and off during runtime. You can however see whether it's compiled or not by executing the command "Tabexpand". The console will show either 1 or 0. This will be taken care of in a later commit. --- src/cmd/acme/wind.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/acme/wind.c') diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c index 712eb1dc..2401ee67 100644 --- a/src/cmd/acme/wind.c +++ b/src/cmd/acme/wind.c @@ -80,6 +80,7 @@ wininit(Window *w, Window *clone, Rectangle r) w->filemenu = TRUE; w->maxlines = w->body.fr.maxlines; w->autoindent = globalautoindent; + w->tabexpand = TRUE; if(clone){ w->dirty = clone->dirty; w->autoindent = clone->autoindent; -- cgit v1.2.3