summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-29 18:34:31 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-29 18:34:31 +0200
commite8d5ff5169a5a2813cfea75568a12fef50d7eadf (patch)
tree4c169df7fc96ace6ddb9c43a5df4935ac1e24df4
parentd3b46b6bf21713b99d991bb69d33df1ee80a15e8 (diff)
parent4a5997ec1cf19737d2472012871ad7e4836f4f3a (diff)
Merge pull request #4823 from Paulb23/fix_backspace_selection_redo_crash
Fix crash when redoing backspace to clear selection
-rw-r--r--scene/gui/text_edit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 6a1494009b..ceb40925ec 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -1876,7 +1876,9 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
}
if (clear) {
- begin_complex_operation();
+ if (!dobreak) {
+ begin_complex_operation();
+ }
selection.active=false;
update();
_remove_text(selection.from_line,selection.from_column,selection.to_line,selection.to_column);