sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 696520714b185ad111b33232dc2d94c281729832
parent 61e06396bdea2352b602a46a2ff7fcd627d073cb
Author: Thomas Mannay <audiobarrier@openmailbox.org>
Date:   Sun,  9 Oct 2016 23:11:01 +0000

ed: giving j only one address does nothing

Diffstat:
Med.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ed.c b/ed.c @@ -1169,9 +1169,8 @@ repeat: case 'j': chkprint(1); deflines(curln, curln+1); - if (!line1) - goto bad_address; - join(); + if (line1 != line2 && curln != 0) + join(); break; case 'z': if (nlines > 1)