Skip to content

Commit

Permalink
[jnc_edit] update highlighting and current line on theme change
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkos committed Aug 15, 2024
1 parent 4f69959 commit 230ebdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jnc_edit/jnc_Edit_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,14 +824,18 @@ EditPrivate::applyTheme() {
m_highlighTable[HighlightKind_PairBrace].format.clearForeground();
}

if (m_syntaxHighlighter)
if (m_syntaxHighlighter) {
m_syntaxHighlighter->m_theme = &m_theme;
m_syntaxHighlighter->rehighlight();
}

if (m_completer)
m_completer->popup()->setPalette(m_theme.palette());

if (m_lineNumberMargin)
m_lineNumberMargin->update();

updateExtraSelections();
}

void
Expand Down

0 comments on commit 230ebdb

Please sign in to comment.