summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2019-10-13 15:29:20 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2019-10-13 15:29:20 +0100
commitaea0761b25276527e2f0099fb8b05a4a879d3c44 (patch)
tree374f507dbf7b46636d958e5e87338e520b29db83 /scene/gui/text_edit.cpp
parent3bf3a0abaabd2f7c9da78a0f847b4c9a5a6ad837 (diff)
Place caret at 0,0 when setting text not at the end
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp3
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;
};