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
1 changed files with 2 additions and 3 deletions

5
ed.c
View File

@ -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)