Merge pull request #47728 from ray90514/bug#47562
Fix LineEdit undo behaves strangely
This commit is contained in:
commit
916bff471a
1 changed files with 1 additions and 0 deletions
|
@ -1234,6 +1234,7 @@ void LineEdit::delete_text(int p_from_column, int p_to_column) {
|
||||||
void LineEdit::set_text(String p_text) {
|
void LineEdit::set_text(String p_text) {
|
||||||
clear_internal();
|
clear_internal();
|
||||||
append_at_cursor(p_text);
|
append_at_cursor(p_text);
|
||||||
|
_create_undo_state();
|
||||||
|
|
||||||
update();
|
update();
|
||||||
cursor_pos = 0;
|
cursor_pos = 0;
|
||||||
|
|
Loading…
Reference in a new issue