ed

simple ed
git clone git://git.2f30.org/ed.git
Log | Files | Refs | LICENSE

commit 827419fffee2a4fbf9adc1b953c1e8a362872079
parent 1438d2c20405a651964e0f454d2037db1c91a22f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 13 Dec 2015 13:29:10 +0100

's' command set as curln the last affected line

subst was setting line2 as curln, but POSIX indicates
thet the last line must be the last line affected by
some substitution.

Diffstat:
ed.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/ed.c b/ed.c @@ -945,7 +945,6 @@ subst(void) nth = getnth(); for (i = line1; i <= line2; i = nextln(i)) subline(i, nth); - curln = line2; } static void