mirror of https://github.com/godotengine/godot
Merge pull request #100451 from larspet/update-syntax-highlight
Clear syntax highlighter cache when theme or syntax highlighter is changed
This commit is contained in:
commit
ed51ec999c
|
|
@ -2956,6 +2956,7 @@ void TextEdit::_update_caches() {
|
|||
if (syntax_highlighter.is_valid()) {
|
||||
syntax_highlighter->set_text_edit(this);
|
||||
}
|
||||
_clear_syntax_highlighting_cache();
|
||||
}
|
||||
|
||||
void TextEdit::_close_ime_window() {
|
||||
|
|
@ -6428,6 +6429,7 @@ void TextEdit::set_syntax_highlighter(Ref<SyntaxHighlighter> p_syntax_highlighte
|
|||
if (syntax_highlighter.is_valid()) {
|
||||
syntax_highlighter->set_text_edit(this);
|
||||
}
|
||||
_clear_syntax_highlighting_cache();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue