[PATCH] Treat addresses of 0 as 1 for insert

From: Thomas Mannay <audiobarrier_AT_openmailbox.org>
Date: Thu, 3 Nov 2016 15:16:32 +0000

---
 ed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
index 184ed30..4cd6bca 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -1137,7 +1137,7 @@ repeat:
 		chkprint(1);
 		deflines(curln, curln);
 		if (!line1)
-			goto bad_address;
+			line1++;
 		append(prevln(line1));
 		break;
 	case 'a':
-- 
2.9.2
-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Thomas Mannay <audiobarrier_AT_openmailbox.org>
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Thu Nov 03 2016 - 16:36:13 CET