diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2019-10-13 15:29:20 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2019-10-13 15:29:20 +0100 |
commit | aea0761b25276527e2f0099fb8b05a4a879d3c44 (patch) | |
tree | 374f507dbf7b46636d958e5e87338e520b29db83 /scene/gui | |
parent | 3bf3a0abaabd2f7c9da78a0f847b4c9a5a6ad837 (diff) |
Place caret at 0,0 when setting text not at the end
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index a22ddb265b..adaff17fbb 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -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; }; |