Merge branch 'master' of github.com:deadpixi/sam - sam - An updated version of … | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 877f877609612abe756caa865317b88fccc9421b | |
parent a3b601ad6c1b225abdb04ecd0c4769e2a7f40dcb | |
Author: Rob King <[email protected]> | |
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(-) | |
--- | |
diff --git a/samterm/main.c b/samterm/main.c | |
@@ -538,11 +538,12 @@ type(Flayer *l, int res) /* what a bloody mess thi… | |
} | |
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; | |
} |