aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/ed.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/ed.c b/editors/ed.c
index 8ec23d07f..e25179ddc 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -345,6 +345,10 @@ 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 ENABLE_PLATFORM_MINGW32
349 if (num <= curNum)
350 curLine = curLine->prev;
351#endif
348 lastNum++; 352 lastNum++;
349 dirty = TRUE; 353 dirty = TRUE;
350 return setCurNum(num); 354 return setCurNum(num);