summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorallkhor <say2word@gmail.com>2018-11-25 23:24:49 +0600
committerallkhor <say2word@gmail.com>2018-11-25 23:24:49 +0600
commit594e0261f3448450d53d740afc7001eb9ef094cf (patch)
treea8190b66148b342a8af8bda42b93b3348abe98fd /scene/gui
parent8348aca118311b82f632781b19230471fae56d4a (diff)
TextEdit: remove selection when clear happens.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 7bfcd0843c..5fe6fcdfac 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -4264,6 +4264,7 @@ void TextEdit::_clear() {
cursor.line_ofs = 0;
cursor.wrap_ofs = 0;
cursor.last_fit_x = 0;
+ selection.active = false;
}
void TextEdit::clear() {