summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index e2925920a2..95dc50f203 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -3927,7 +3927,7 @@ void TextEdit::end_complex_operation() {
if (complex_operation_count > 0) {
return;
}
- ERR_FAIL_COND(undo_stack.size() == 0);
+ ERR_FAIL_COND(undo_stack.is_empty());
undo_stack.back()->get().end_carets = carets;
if (undo_stack.back()->get().chain_forward) {