diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-16 10:28:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 10:28:57 +0200 |
commit | 916bff471aa7dc87c16ef5fedcd6207d3fba6743 (patch) | |
tree | fe738d40520f3dbf8b3eaf7f749db064c198800b /scene | |
parent | ce618d1be39b2bbfb5a7c274907ba1589deafdb8 (diff) | |
parent | 7501c7f48aae218b693b5b37af6a00380457240e (diff) |
Merge pull request #47728 from ray90514/bug#47562
Fix LineEdit undo behaves strangely
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 2d8eb3191c..6282549ab4 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -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; |