[PATCH 2/5] ed: giving j only one address does nothing

From: Thomas Mannay <audiobarrier_AT_openmailbox.org>
Date: Sun, 9 Oct 2016 23:11:01 +0000

---
 ed.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ed.c b/ed.c
index f552234..4ab40bc 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -1174,9 +1174,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)
-- 
2.10.0
--Multipart=_Sun__9_Oct_2016_23_20_20_+0000_Tw0GY2bnCixoZsD5
Content-Type: text/x-patch;
 name="0003-ed-place-newly-joined-lines-correctly.patch"
Content-Disposition: attachment;
 filename="0003-ed-place-newly-joined-lines-correctly.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 10 2016 - 16:48:13 CEST