Introduction
Introduction Statistics Contact Development Disclaimer Help
tex: spaces in substitute's arguments - neatvi - [fork] simple vi-type editor w…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit fe3f195e528e46ff0abcf91f31918fbd19942d37
parent 337895429257494f04d100a9d28c99ca013135d4
Author: Ali Gholami Rudi <[email protected]>
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(-)
---
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);
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.