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

3
ed.c
View File

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