ed

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

commit a035f11397576d6165c30bf0591a2209b7c7e560
parent b533260aee21c8cda22ac5bee589dbf418348816
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun Dec 13 12:20:51 +0100

Cleanup scroll() (z)

last wasn't used and there's no real need to have an intermediary
boundary there.

Diffstat:
ed.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ed.c b/ed.c @@ -791,12 +791,11 @@ join(void) static void scroll(int num) { - int i, last; + int i; if (!line1 || line1 == lastln) error("incorrect address"); - last = (line1 + num > lastln) ? lastln - line1 : num; for (i = line1; i <= line1 + num && i <= lastln; ++i) fputs(gettxt(i), stdout); curln = i;