commit 137f0917e48c5572ad7de889944af6b10f3c1035 parent 2d4d7dc6d46ed7d227d49110196846d72f095d4b Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 6 Dec 2023 01:20:06 +0100 ed: Print only last line in empty command Diffstat:
M | ed.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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':