mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
GTextEditor: Scroll the cursor into view before updating it.
This commit is contained in:
parent
9591acc212
commit
60c1ab5fbe
1 changed files with 1 additions and 1 deletions
|
@ -246,8 +246,8 @@ void GTextEditor::set_cursor(int line, int column)
|
||||||
update_cursor();
|
update_cursor();
|
||||||
m_cursor = GTextPosition(line, column);
|
m_cursor = GTextPosition(line, column);
|
||||||
m_cursor_state = true;
|
m_cursor_state = true;
|
||||||
update_cursor();
|
|
||||||
scroll_cursor_into_view();
|
scroll_cursor_into_view();
|
||||||
|
update_cursor();
|
||||||
if (on_cursor_change)
|
if (on_cursor_change)
|
||||||
on_cursor_change(*this);
|
on_cursor_change(*this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue