diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 45c9b81737f..40b799a5a29 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1258,6 +1258,7 @@ void LineEdit::set_text(String p_text) { clear_internal(); append_at_cursor(p_text); + _create_undo_state(); if (expand_to_text_length) { minimum_size_changed();