You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Place caret at 0,0 when setting text not at the end
This commit is contained in:
@@ -4751,6 +4751,9 @@ void TextEdit::set_text(String p_text) {
|
||||
selection.active = false;
|
||||
}
|
||||
|
||||
cursor_set_line(0);
|
||||
cursor_set_column(0);
|
||||
|
||||
update();
|
||||
setting_text = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user