Przeglądaj źródła

TextEdit: remove selection when clear happens.

allkhor 6 lat temu
rodzic
commit
594e0261f3
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      scene/gui/text_edit.cpp

+ 1 - 0
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() {