commit 137f0917e48c5572ad7de889944af6b10f3c1035
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed Dec 6 01:20:06 2023 +0100
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Dec 28 17:19:17 2023 +0100
ed: Print only last line in empty command
diff --git a/ed.c b/ed.c
index 35fddf1..eaa4ca9 100644
--- a/ed.c
+++ b/ed.c
@@ -1255,6 +1255,7 @@ repeat:
case '\0':
num = gflag ? curln : curln+1;
deflines(num, num);
+ line1 = line2;
pflag = 'p';
goto print;
case 'l':