sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit a19aad7c70b19e20986311e381c5c80e8b840b15
parent 0cd385d16413e631222cdd73d141d4cb72b854a1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 14 Dec 2015 15:40:20 +0100

Fix getrhs()

getrhs() must not interpret escapes, because in other case
addsub() will not be able to see the escaped characters.

Diffstat:
Med.c | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/ed.c b/ed.c @@ -877,12 +877,6 @@ getrhs(int delim) s = NULL; siz = cap = 0; while ((c = input()) != '\n' && c != EOF && c != delim) { - if (c == '\\') { - if (isdigit(c = input())) { - back(c); - c = '\\'; - } - } s = addchar(c, s, &siz, &cap); } s = addchar('\0', s, &siz, &cap);