ed

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

commit 6c6329880461d01223eaaf93abb352e16457caaf
parent 30711833a0a517b84dd5c0e49e2bb522e3d652ad
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 13 Dec 2015 19:30:33 +0100

Fix subst()

nextln() must be used for circular access,
but in subst we want only linear access.
This error was generating some infinite
loops.

Diffstat:
Med.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ed.c b/ed.c @@ -977,7 +977,7 @@ subst(int nth) { int i; - for (i = line1; i <= line2; i = nextln(i)) + for (i = line1; i <= line2; ++i) subline(i, nth); }