Browse Source

Merge pull request #23964 from allkhor/text_edit_clear_selection

TextEdit: remove selection when clear happens.
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
73551a1edc
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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() {