diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-12-13 20:16:23 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-12-13 20:22:48 +0200 |
commit | a56fdea289585b0fb7d6aaa0da73d964b9999703 (patch) | |
tree | 8af2a36a744e36483e4f4064d6ae6f02027e8f97 /scene/gui | |
parent | c7c561ffd5d0e46cd1db3dbb583c6ca3841ab894 (diff) |
[TextEdit] Fix IME intermediate text not displayed when TextEdit is empty and placeholder is set.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index a96d85dffa..6d9e8a90c2 100644 --- a/scene/gui/text_edit.cpp +++ b/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. String highlighted_text = get_selected_text(0); |