From b68093903686fd5a294f14b901027e409ff904c3 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. (cherry picked from commit 594e0261f3448450d53d740afc7001eb9ef094cf) --- 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 273c3209e9a..5daf4609676 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4105,6 +4105,7 @@ void TextEdit::_clear() { cursor.line_ofs = 0; line_scroll_pos = 0; cursor.last_fit_x = 0; + selection.active = false; } void TextEdit::clear() {