diff options
author | allkhor <say2word@gmail.com> | 2018-11-25 23:24:49 +0600 |
---|---|---|
committer | allkhor <say2word@gmail.com> | 2018-11-25 23:24:49 +0600 |
commit | 594e0261f3448450d53d740afc7001eb9ef094cf (patch) | |
tree | a8190b66148b342a8af8bda42b93b3348abe98fd /scene/gui/text_edit.cpp | |
parent | 8348aca118311b82f632781b19230471fae56d4a (diff) |
TextEdit: remove selection when clear happens.
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 1 |
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() { |