Skip to content

Commit

Permalink
Do not use partialRedraw when typing
Browse files Browse the repository at this point in the history
With line wrapping enabled, remove characters from a wrapped line until it ceases to be wrapped. With the invocation to partialRedraw, lines below that position would not be updated.
  • Loading branch information
magiblot committed Jan 21, 2024
1 parent 8d42224 commit 6910c1b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source/turbo-core/editview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,10 @@ void EditorView::handleEvent(TEvent &ev)
if (ev.keyDown.keyCode == kbIns)
setState(sfCursorIns, !getState(sfCursorIns));
if (ev.keyDown.controlKeyState & kbPaste)
{
handlePaste(ev);
editor->redraw(); // partialRedraw() is broken for this action.
}
else
{
handleKeyDown(scintilla, ev.keyDown);
editor->partialRedraw();
}
editor->redraw(); // partialRedraw() is broken for this action.
clearEvent(ev);
break;
case evMouseDown:
Expand Down

0 comments on commit 6910c1b

Please sign in to comment.