tex: spaces in substitute's arguments - 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 fe3f195e528e46ff0abcf91f31918fbd19942d37
 (DIR) parent 337895429257494f04d100a9d28c99ca013135d4
 (HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
       Date:   Thu, 18 Jun 2015 13:07:02 +0430
       
       ex: spaces in substitute's arguments
       
       Diffstat:
         M ex.c                                |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ex.c b/ex.c
       t@@ -576,18 +576,18 @@ static char *readuntil(char **src, int delim)
        
        static int ec_substitute(char *ec)
        {
       -        char loc[EXLEN], arg[EXLEN];
       +        char loc[EXLEN];
                struct rset *re;
                int offs[32];
                int beg, end;
                char *pat, *rep;
       -        char *s = arg;
       +        char *s;
                int delim;
                int i;
       -        ex_arg(ec, arg);
                ex_loc(ec, loc);
                if (ex_region(loc, &beg, &end))
                        return 1;
       +        s = ex_argeol(ec);
                delim = (unsigned char) *s++;
                pat = readuntil(&s, delim);
                rep = readuntil(&s, delim);