Commit 6d2c71ca authored by Erik Verbruggen's avatar Erik Verbruggen Committed by David Schulz
Browse files

C++: fix semantic highlighting when multiple editors are visible.

Update an editor when it is visible, not only when it is the active

Change-Id: I972d7185e466355dba62f2f59144cfaad5f37778
Reviewed-by: default avatarDavid Schulz <>
parent f10b978f
......@@ -2003,7 +2003,7 @@ void CPPEditorWidget::updateSemanticInfo(const SemanticInfo &semanticInfo)
if (! semanticHighlighterDisabled && semanticInfo.doc) {
if (Core::EditorManager::currentEditor() == editor()) {
if (isVisible()) {
if (m_highlightingSupport) {
m_highlighter = m_highlightingSupport->highlightingFuture(semanticInfo.doc, semanticInfo.snapshot);
m_highlightRevision = semanticInfo.revision;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment