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

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

Change-Id: I972d7185e466355dba62f2f59144cfaad5f37778
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Erik Verbruggen
2013-02-01 13:45:03 +01:00
committed by David Schulz
parent f10b978f86
commit 6d2c71ca84

View File

@@ -2003,7 +2003,7 @@ void CPPEditorWidget::updateSemanticInfo(const SemanticInfo &semanticInfo)
m_highlighter.cancel(); m_highlighter.cancel();
if (! semanticHighlighterDisabled && semanticInfo.doc) { if (! semanticHighlighterDisabled && semanticInfo.doc) {
if (Core::EditorManager::currentEditor() == editor()) { if (isVisible()) {
if (m_highlightingSupport) { if (m_highlightingSupport) {
m_highlighter = m_highlightingSupport->highlightingFuture(semanticInfo.doc, semanticInfo.snapshot); m_highlighter = m_highlightingSupport->highlightingFuture(semanticInfo.doc, semanticInfo.snapshot);
m_highlightRevision = semanticInfo.revision; m_highlightRevision = semanticInfo.revision;