tvi: use ren_noeol() in vc_replace() - neatvi - [fork] simple vi-type editor wi… | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 9aa84224d74248ac35a733081d07d711b7b49fa7 | |
parent 71b2ab030dbda59b9d8cf44fb78bc0ff4af93073 | |
Author: Ali Gholami Rudi <[email protected]> | |
Date: Fri, 22 May 2015 18:03:22 +0430 | |
vi: use ren_noeol() in vc_replace() | |
Diffstat: | |
M vi.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/vi.c b/vi.c | |
t@@ -980,7 +980,7 @@ static int vc_replace(void) | |
int off, i; | |
if (!ln || !cs) | |
return 1; | |
- off = ren_off(ln, xcol); | |
+ off = ren_off(ln, ren_noeol(ln, xcol)); | |
s = uc_chr(ln, off); | |
for (i = 0; s[0] != '\n' && i < cnt; i++) | |
s = uc_next(s); |