ed: Treat addresses of 0 as 1 for insert

From 6665eaa1d2c25a95b44a4f4fb3d24a3bd5c1180f Mon Sep 17 00:00:00 2001
From: Thomas Mannay <audiobarrier@openmailbox.org>
Date: Thu, 3 Nov 2016 15:16:32 +0000
Subject: [PATCH] Treat addresses of 0 as 1 for insert
This commit is contained in:
Thomas Mannay 2016-11-03 15:19:35 +00:00 committed by Laslo Hunhold
parent 441f73a518
commit 89f5f84316

2
ed.c
View File

@ -1143,7 +1143,7 @@ repeat:
chkprint(1); chkprint(1);
deflines(curln, curln); deflines(curln, curln);
if (!line1) if (!line1)
goto bad_address; line1++;
append(prevln(line1)); append(prevln(line1));
break; break;
case 'a': case 'a':