Browse Source

Merge pull request #4823 from Paulb23/fix_backspace_selection_redo_crash

Fix crash when redoing backspace to clear selection
Rémi Verschelde 9 years ago
parent
commit
e8d5ff5169
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scene/gui/text_edit.cpp

+ 3 - 1
scene/gui/text_edit.cpp

@@ -1876,7 +1876,9 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
 				}
 				}
 				if (clear) {
 				if (clear) {
 
 
-					begin_complex_operation();
+					if (!dobreak) {
+						begin_complex_operation();
+					}
 					selection.active=false;
 					selection.active=false;
 					update();
 					update();
 					_remove_text(selection.from_line,selection.from_column,selection.to_line,selection.to_column);
 					_remove_text(selection.from_line,selection.from_column,selection.to_line,selection.to_column);