mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Place caret at 0,0 when setting text not at the end
This commit is contained in:
parent
3bf3a0abaa
commit
aea0761b25
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user