tex: preserve cursor position in :g - 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 4b33509818c2ffd5648ac19de6a48a4010912e40
 (DIR) parent 2e55bac697aba82a162cd461a6112c82c7eaf871
 (HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
       Date:   Thu, 23 Jun 2016 10:42:47 +0430
       
       ex: preserve cursor position in :g
       
       Diffstat:
         M ex.c                                |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ex.c b/ex.c
       t@@ -818,7 +818,7 @@ static int ec_glob(char *ec)
                                int len = lbuf_len(xb);
                                xrow = i;
                                ex_exec(s);
       -                        i += lbuf_len(xb) - len;
       +                        i = xrow;
                                end += lbuf_len(xb) - len;
                        }
                        i++;