diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 13:34:00 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 13:34:00 +0100 |
commit | 60c1ab5fbe613f4436c5c830bc4d6d50f4a9ce89 (patch) | |
tree | 58ce67d637ddb479b6d29095d7f2c15eda8c3d6e /LibGUI/GTextEditor.cpp | |
parent | 9591acc212dc39e5b0a0cc37840d070188bfb50d (diff) | |
download | serenity-60c1ab5fbe613f4436c5c830bc4d6d50f4a9ce89.zip |
GTextEditor: Scroll the cursor into view before updating it.
Diffstat (limited to 'LibGUI/GTextEditor.cpp')
-rw-r--r-- | LibGUI/GTextEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |