[hackers] [sbase] ed: giving j only one address does nothing || Thomas Mannay

From: <git_AT_suckless.org>
Date: Tue, 27 Dec 2016 15:04:01 +0100 (CET)

commit 696520714b185ad111b33232dc2d94c281729832
Author: Thomas Mannay <audiobarrier_AT_openmailbox.org>
AuthorDate: Sun Oct 9 23:11:01 2016 +0000
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Tue Dec 27 12:50:09 2016 +0100

    ed: giving j only one address does nothing

diff --git a/ed.c b/ed.c
index c4cce37..ff619d8 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -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)
Received on Tue Dec 27 2016 - 15:04:01 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 15:12:49 CET