ed: giving j only one address does nothing

This commit is contained in:
Thomas Mannay 2016-10-09 23:11:01 +00:00 committed by Laslo Hunhold
parent 61e06396bd
commit 696520714b

5
ed.c
View File

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