mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-09 17:25:04 +00:00
LibGUI: Clear old syntax highlighting
This commit is contained in:
@@ -1498,7 +1498,8 @@ void TextEditor::set_syntax_highlighter(OwnPtr<SyntaxHighlighter> highlighter)
|
||||
if (m_highlighter) {
|
||||
m_highlighter->attach(*this);
|
||||
m_highlighter->rehighlight();
|
||||
}
|
||||
} else
|
||||
document().set_spans({});
|
||||
}
|
||||
|
||||
int TextEditor::line_height() const
|
||||
|
||||
Reference in New Issue
Block a user