tvi: use ren_noeol() in vc_replace() - neatvi - [fork] simple vi-type editor with UTF-8 support
 (HTM) git clone git://src.adamsgaard.dk/neatvi
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 9aa84224d74248ac35a733081d07d711b7b49fa7
 (DIR) parent 71b2ab030dbda59b9d8cf44fb78bc0ff4af93073
 (HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
       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(-)
       ---
 (DIR) 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);