소스 검색

Merge pull request #47728 from ray90514/bug#47562

Fix LineEdit undo behaves strangely
Rémi Verschelde 4 년 전
부모
커밋
916bff471a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/gui/line_edit.cpp

+ 1 - 0
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;