1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

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

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