commit a19aad7c70b19e20986311e381c5c80e8b840b15
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Mon Dec 14 15:40:20 2015 +0100
Commit:     sin <[email protected]>
CommitDate: Mon Dec 14 14:52:53 2015 +0000

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

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);

Reply via email to