sbase

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

commit 1345ee5e7374bca701c96637171e5e184f4acbcb
parent 9ad2dd0d315a2fe5bf9a07b6f2284f76810744ba
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon Dec 14 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:
ed.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);