Merge pull request #70024 from bruvzg/te_ime_text

[TextEdit] Fix IME intermediate text not displayed when TextEdit is empty and placeholder is set.
This commit is contained in:
Rémi Verschelde 2022-12-14 00:17:08 +01:00
commit ef3c756e98
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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.
String highlighted_text = get_selected_text(0);