Fix crash when redoing backspace to clear selection
(cherry picked from commit 4a5997ec1c
)
This commit is contained in:
parent
99c948ba56
commit
71487793df
|
@ -1838,7 +1838,9 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
||||||
}
|
}
|
||||||
if (clear) {
|
if (clear) {
|
||||||
|
|
||||||
begin_complex_operation();
|
if (!dobreak) {
|
||||||
|
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