LibGUI: Update TextEditor after triple-click to select (#4897)

Previously, it was "relying" on the cursor blink timer to update
the visual selection.

This caused some delay after the whole line was selected by
triple-clicking specifically the last word in a line.

Now, the widget is updated after triple-clicking.
This commit is contained in:
campital 2021-01-11 05:42:06 -05:00 committed by GitHub
parent 603147f47a
commit c7fc9d185d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-18 23:56:55 +09:00

View file

@ -286,6 +286,8 @@ void TextEditor::mousedown_event(MouseEvent& event)
m_selection.set(start, end);
set_cursor(end);
update();
did_update_selection();
return;
}