Преглед изворни кода

Merge pull request #70024 from bruvzg/te_ime_text

[TextEdit] Fix IME intermediate text not displayed when TextEdit is empty and placeholder is set.
Rémi Verschelde пре 2 година
родитељ
комит
ef3c756e98
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scene/gui/text_edit.cpp

+ 1 - 1
scene/gui/text_edit.cpp

@@ -680,7 +680,7 @@ void TextEdit::_notification(int p_what) {
 				}
 				}
 			}
 			}
 
 
-			bool draw_placeholder = text.size() == 1 && text[0].length() == 0;
+			bool draw_placeholder = text.size() == 1 && text[0].is_empty() && ime_text.is_empty();
 
 
 			// Get the highlighted words.
 			// Get the highlighted words.
 			String highlighted_text = get_selected_text(0);
 			String highlighted_text = get_selected_text(0);