Fix crash when redoing backspace to clear selection

(cherry picked from commit 4a5997ec1c)
This commit is contained in:
Paulb23 2016-05-26 14:45:11 +01:00 committed by Rémi Verschelde
parent 99c948ba56
commit 71487793df

View file

@ -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);