ed

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

commit b533260aee21c8cda22ac5bee589dbf418348816
parent b37011789a7487f9e89c5bfc3951a1b90c506418
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 13 Dec 2015 22:08:13 +0100

Add correct behaviour of '\n' in interactive globals

Newline in interactive globals only discards the current
line and jump to the next selected line.

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

diff --git a/ed.c b/ed.c @@ -1032,6 +1032,8 @@ repeat: if (cmdsiz == 0) quit(); case '\n': + if (gflag && uflag) + return; num = gflag ? curln : curln+1; deflines(num, num); pflag = 'p';