1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:45:06 +00:00

LibGUI: Clear old syntax highlighting

This commit is contained in:
Oriko 2020-03-11 03:01:52 +02:00 committed by Andreas Kling
parent 3803196edb
commit 03b1748d3f

View file

@ -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