forked from qt-creator/qt-creator
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:
committed by
David Schulz
parent
f10b978f86
commit
6d2c71ca84
@@ -2003,7 +2003,7 @@ void CPPEditorWidget::updateSemanticInfo(const SemanticInfo &semanticInfo)
|
||||
m_highlighter.cancel();
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user