Fix crash when redoing backspace to clear selection
This commit is contained in:
parent
9daaa70920
commit
4a5997ec1c
|
@ -1820,7 +1820,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);
|
||||||
|
|
Loading…
Reference in New Issue