1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 03:55:07 +00:00

GTextEditor: Scroll the cursor into view before updating it.

This commit is contained in:
Andreas Kling 2019-03-07 13:34:00 +01:00
parent 9591acc212
commit 60c1ab5fbe

View file

@ -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);
}