From c7fc9d185d26438b8b5f37b15e42825c64ad550f Mon Sep 17 00:00:00 2001 From: campital <33563097+campital@users.noreply.github.com> Date: Mon, 11 Jan 2021 05:42:06 -0500 Subject: [PATCH] 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. --- Libraries/LibGUI/TextEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp index 19458a19a6..bd2e220d19 100644 --- a/Libraries/LibGUI/TextEditor.cpp +++ b/Libraries/LibGUI/TextEditor.cpp @@ -286,6 +286,8 @@ void TextEditor::mousedown_event(MouseEvent& event) m_selection.set(start, end); set_cursor(end); + update(); + did_update_selection(); return; }