1
0
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:
Paulb23
2019-10-13 15:29:20 +01:00
parent 3bf3a0abaa
commit aea0761b25

View File

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