mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 19:12:24 -05:00
Merge pull request #40851 from Paulb23/fix_text_edit_width_cache
Fix TextEdit line width cache not being updated
This commit is contained in:
commit
b27bdcb51e
1 changed files with 1 additions and 0 deletions
|
@ -4889,6 +4889,7 @@ void TextEdit::_update_caches() {
|
||||||
cache.folded_eol_icon = get_theme_icon("GuiEllipsis", "EditorIcons");
|
cache.folded_eol_icon = get_theme_icon("GuiEllipsis", "EditorIcons");
|
||||||
cache.executing_icon = get_theme_icon("MainPlay", "EditorIcons");
|
cache.executing_icon = get_theme_icon("MainPlay", "EditorIcons");
|
||||||
text.set_font(cache.font);
|
text.set_font(cache.font);
|
||||||
|
text.clear_width_cache();
|
||||||
|
|
||||||
if (syntax_highlighter.is_valid()) {
|
if (syntax_highlighter.is_valid()) {
|
||||||
syntax_highlighter->set_text_edit(this);
|
syntax_highlighter->set_text_edit(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue