From a19aad7c70b19e20986311e381c5c80e8b840b15 Mon Sep 17 00:00:00 2001 From: "Roberto E. Vargas Caballero" Date: Mon, 14 Dec 2015 15:40:20 +0100 Subject: [PATCH] Fix getrhs() getrhs() must not interpret escapes, because in other case addsub() will not be able to see the escaped characters. --- ed.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ed.c b/ed.c index 1944fae..f24c55a 100644 --- 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);