mirror of
https://github.com/godotengine/godot.git
synced 2025-04-19 01:27:45 +08:00
Don't error when undo stack is empty
This commit is contained in:
parent
292e50e17e
commit
630d3eb35e
@ -3907,7 +3907,9 @@ void TextEdit::end_complex_operation() {
|
||||
if (complex_operation_count > 0) {
|
||||
return;
|
||||
}
|
||||
ERR_FAIL_COND(undo_stack.is_empty());
|
||||
if (undo_stack.is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
undo_stack.back()->get().end_carets = carets;
|
||||
if (undo_stack.back()->get().chain_forward) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user