Introduction
Introduction Statistics Contact Development Disclaimer Help
tren: fix tab width - neatvi - [fork] simple vi-type editor with UTF-8 support
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 7cbcaf73c5c8cc39c55bd675672e26faa064e97f
parent 674db133b8d6995f54c4cb682d7193dbda7ca62a
Author: Ali Gholami Rudi <[email protected]>
Date: Wed, 13 May 2015 09:27:39 +0430
ren: fix tab width
Diffstat:
M ren.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ren.c b/ren.c
t@@ -22,7 +22,7 @@ int *ren_position(char *s)
for (i = 0; i < n; i++) {
pos[off[i]] += diff;
if (*chrs[i] == '\t')
- diff += 8 - (pos[off[i]] & 7);
+ diff += 8 - (pos[off[i]] & 7) - 1;
}
pos[n] = n + diff;
free(chrs);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.