From 71487793df33fe321164a37eb5072d4689456656 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Thu, 26 May 2016 14:45:11 +0100 Subject: [PATCH] Fix crash when redoing backspace to clear selection (cherry picked from commit 4a5997ec1cf19737d2472012871ad7e4836f4f3a) --- scene/gui/text_edit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 9494d3b3143..dacaf0573ab 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1838,7 +1838,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);