Merge pull request #40851 from Paulb23/fix_text_edit_width_cache

Fix TextEdit line width cache not being updated
This commit is contained in:
Rémi Verschelde 2020-07-29 22:56:21 +02:00 committed by GitHub
commit b27bdcb51e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4889,6 +4889,7 @@ void TextEdit::_update_caches() {
cache.folded_eol_icon = get_theme_icon("GuiEllipsis", "EditorIcons");
cache.executing_icon = get_theme_icon("MainPlay", "EditorIcons");
text.set_font(cache.font);
text.clear_width_cache();
if (syntax_highlighter.is_valid()) {
syntax_highlighter->set_text_edit(this);