1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[TextEdit] Update syntax highlighting when IME composition string is updated.

This commit is contained in:
Pāvels Nadtočajevs
2025-02-05 18:37:53 +02:00
parent 06acfccf89
commit 7da0767f35
5 changed files with 66 additions and 29 deletions

View File

@@ -94,7 +94,7 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
in_region = color_region_cache[p_line - 1];
}
const String &str = text_edit->get_line(p_line);
const String &str = text_edit->get_line_with_ime(p_line);
const int line_length = str.length();
Color prev_color;