diff options
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 2b2ea54dde..5a64dabb0e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -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) { |