ed: Print only last line in empty command

This commit is contained in:
Roberto E. Vargas Caballero 2023-12-06 01:20:06 +01:00
parent 2d4d7dc6d4
commit 137f0917e4
1 changed files with 1 additions and 0 deletions

1
ed.c
View File

@ -1255,6 +1255,7 @@ repeat:
case '\0':
num = gflag ? curln : curln+1;
deflines(num, num);
line1 = line2;
pflag = 'p';
goto print;
case 'l':