From 594e0261f3448450d53d740afc7001eb9ef094cf Mon Sep 17 00:00:00 2001 From: allkhor Date: Sun, 25 Nov 2018 23:24:49 +0600 Subject: [PATCH] TextEdit: remove selection when clear happens. --- scene/gui/text_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 7bfcd0843ca..5fe6fcdfac0 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() {