Fix LineEdit undo behaves strangely

(cherry picked from commit 7501c7f48a)
This commit is contained in:
ray90514 2021-04-08 23:43:50 +08:00 committed by Rémi Verschelde
parent 1f54a75310
commit ea8004052d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();