diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-26 11:00:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 11:00:54 +0100 |
commit | 73551a1edc6f805f8e34838ffd98a5e9e40db992 (patch) | |
tree | 6772cdf33dc314f56ac2a923157d015bdf73219c | |
parent | af92b7dc14a7b6c8b14b6e7ad076ac6734e1efb0 (diff) | |
parent | 594e0261f3448450d53d740afc7001eb9ef094cf (diff) |
Merge pull request #23964 from allkhor/text_edit_clear_selection
TextEdit: remove selection when clear happens.
-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() { |