aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/ed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/ed.c b/editors/ed.c
index 8ec23d07f..a02634ec7 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -345,6 +345,8 @@ static int insertLine(int num, const char *data, int len)
345 lp->prev->next = newLp; 345 lp->prev->next = newLp;
346 lp->prev = newLp; 346 lp->prev = newLp;
347 347
348 if (num <= curNum)
349 curLine = curLine->prev;
348 lastNum++; 350 lastNum++;
349 dirty = TRUE; 351 dirty = TRUE;
350 return setCurNum(num); 352 return setCurNum(num);