[hackers] [sbase] ed: Treat addresses of 0 as 1 for insert || Thomas Mannay
commit 89f5f8431678640cc566b760ad9bf91e9994e48f
Author: Thomas Mannay <audiobarrier_AT_openmailbox.org>
AuthorDate: Thu Nov 3 15:19:35 2016 +0000
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Mon Jan 2 20:57:00 2017 +0100
ed: Treat addresses of 0 as 1 for insert
From 6665eaa1d2c25a95b44a4f4fb3d24a3bd5c1180f Mon Sep 17 00:00:00 2001
From: Thomas Mannay <audiobarrier_AT_openmailbox.org>
Date: Thu, 3 Nov 2016 15:16:32 +0000
Subject: [PATCH] Treat addresses of 0 as 1 for insert
diff --git a/ed.c b/ed.c
index 72248ab..52b2684 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -1143,7 +1143,7 @@ repeat:
chkprint(1);
deflines(curln, curln);
if (!line1)
- goto bad_address;
+ line1++;
append(prevln(line1));
break;
case 'a':
Received on Mon Jan 02 2017 - 20:57:08 CET
This archive was generated by hypermail 2.3.0
: Mon Jan 02 2017 - 21:00:18 CET