From 6cb936888f348bec76497606c8c34be39c61ef24 Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Fri, 3 Feb 2006 11:25:19 +0000 Subject: [PATCH] Undo screen refresh optimization --- golded3/geedit.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/golded3/geedit.cpp b/golded3/geedit.cpp index 256b572..d434bc1 100644 --- a/golded3/geedit.cpp +++ b/golded3/geedit.cpp @@ -1349,12 +1349,17 @@ void IEclass::DelChar() { // Make sure the line type still is correct setlinetype(_thisline); - wrapdel(&currline, &col, &row, false); - - if (((row-1) == minrow) && currline->prev) - refresh(currline->prev, minrow); - else + // Rewrap this line + bool display = make_bool_not(row > maxrow / 2); + wrapdel(&currline, &col, &row, display); + if(display) { refresh(currline, row); + } + else { + // Refresh the display + Line* _topline = findtopline(); + refresh(_topline, minrow); + } GFTRK(NULL); }