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:
parent
3803196edb
commit
03b1748d3f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue