Skip to content

Commit

Permalink
Fix LineEdit undo behaves strangely
Browse files Browse the repository at this point in the history
  • Loading branch information
ray90514 committed Apr 8, 2021
1 parent 35066f3 commit 7501c7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/line_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,7 @@ void LineEdit::delete_text(int p_from_column, int p_to_column) {
void LineEdit::set_text(String p_text) {
clear_internal();
append_at_cursor(p_text);
_create_undo_state();

update();
cursor_pos = 0;
Expand Down

0 comments on commit 7501c7f

Please sign in to comment.