1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

LibSyntax+TextEditor: Move Highlighter::language_string() out of class

This commit is contained in:
Karol Kosek 2022-12-19 19:13:18 +01:00 committed by Tim Flynn
parent 3c2227ceed
commit b00865bce5
3 changed files with 4 additions and 3 deletions

View file

@ -872,7 +872,7 @@ void MainWidget::update_statusbar()
if (m_editor && m_editor->syntax_highlighter()) {
auto language = m_editor->syntax_highlighter()->language();
m_statusbar->set_text(1, m_editor->syntax_highlighter()->language_string(language));
m_statusbar->set_text(1, Syntax::language_to_string(language));
}
m_statusbar->set_text(2, DeprecatedString::formatted("Ln {}, Col {}", m_editor->cursor().line() + 1, m_editor->cursor().column()));
}