Fix crash when redoing backspace to clear selection

This commit is contained in:
Paulb23 2016-05-26 14:45:11 +01:00
parent 9daaa70920
commit 4a5997ec1c
1 changed files with 3 additions and 1 deletions

View File

@ -1820,7 +1820,9 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
}
if (clear) {
if (!dobreak) {
begin_complex_operation();
}
selection.active=false;
update();
_remove_text(selection.from_line,selection.from_column,selection.to_line,selection.to_column);