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() {