Skip to content

Commit

Permalink
Do not use partialRedraw() when Undo'ing
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Mar 5, 2023
1 parent 31e1808 commit 907fdaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/turbo-core/editview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void EditorView::handleEvent(TEvent &ev)
if (ev.keyDown.controlKeyState & kbPaste)
{
handlePaste(ev);
editor->redraw(); // partialRedraw() is broken for the Paste action (Scintilla bug).
editor->redraw(); // partialRedraw() is broken for this action.
}
else
{
Expand Down Expand Up @@ -95,12 +95,12 @@ void EditorView::handleEvent(TEvent &ev)
{
case cmUndo:
call(scintilla, SCI_UNDO, 0U, 0U);
editor->partialRedraw();
editor->redraw(); // partialRedraw() is broken for this action.
clearEvent(ev);
break;
case cmRedo:
call(scintilla, SCI_REDO, 0U, 0U);
editor->redraw(); // partialRedraw() is broken for the Redo action (Scintilla bug).
editor->redraw(); // partialRedraw() is broken for this action.
clearEvent(ev);
break;
case cmCut:
Expand Down

0 comments on commit 907fdaa

Please sign in to comment.