diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 5fa3076d5f1..b69a3cc4287 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4245,6 +4245,7 @@ void TextEdit::paste() { String clipboard = OS::get_singleton()->get_clipboard(); + begin_complex_operation(); if (selection.active) { selection.active = false; @@ -4261,6 +4262,8 @@ void TextEdit::paste() { } _insert_text_at_cursor(clipboard); + end_complex_operation(); + update(); }