diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2016-05-26 14:45:11 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2016-05-26 14:45:11 +0100 |
commit | 4a5997ec1cf19737d2472012871ad7e4836f4f3a (patch) | |
tree | 91ee59bdc60316358ca68529068bae6049765c94 /scene/gui | |
parent | 9daaa709207adf77eb5cf7c440782eaad3a3f7b2 (diff) |
Fix crash when redoing backspace to clear selection
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 03024daff5..a64c4d15dd 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1820,7 +1820,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); |