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
1 changed files with 3 additions and 1 deletions

View File

@ -1838,7 +1838,9 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
} }
if (clear) { if (clear) {
if (!dobreak) {
begin_complex_operation(); 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);