1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Merge pull request #4823 from Paulb23/fix_backspace_selection_redo_crash

Fix crash when redoing backspace to clear selection
This commit is contained in:
Rémi Verschelde
2016-05-29 18:34:31 +02:00

View File

@@ -1876,7 +1876,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);