Merge branch 'master' of github.com:deadpixi/sam - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 877f877609612abe756caa865317b88fccc9421b
(DIR) parent a3b601ad6c1b225abdb04ecd0c4769e2a7f40dcb
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Wed, 18 May 2016 17:17:59 -0500
Merge branch 'master' of github.com:deadpixi/sam
Diffstat:
samterm/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/samterm/main.c b/samterm/main.c
@@ -538,11 +538,12 @@ type(Flayer *l, int res) /* what a bloody mess this is */
}
if (expandtabs && c == '\t' && !k.composed){
int col = 0, nspaces = 8, off = a;
+ int i;
while (off > 0 && raspc(&t->rasp, off - 1) != '\n')
off--, col++;
nspaces = tabwidth - col % tabwidth;
- for (int i = 0; i < nspaces; i++)
+ for (i = 0; i < nspaces; i++)
pushkbd(' ');
break;
}