[TextEdit] Fix IME intermediate text not displayed when TextEdit is empty and placeholder is set.

This commit is contained in:
bruvzg 2022-12-13 20:16:23 +02:00
parent c7c561ffd5
commit a56fdea289
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

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);