From 60c1ab5fbe613f4436c5c830bc4d6d50f4a9ce89 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 7 Mar 2019 13:34:00 +0100 Subject: [PATCH] GTextEditor: Scroll the cursor into view before updating it. --- LibGUI/GTextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 2b19bd7e33..1604cc6c1f 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -246,8 +246,8 @@ void GTextEditor::set_cursor(int line, int column) update_cursor(); m_cursor = GTextPosition(line, column); m_cursor_state = true; - update_cursor(); scroll_cursor_into_view(); + update_cursor(); if (on_cursor_change) on_cursor_change(*this); }