forked from qt-creator/qt-creator
Don't remove syntax errors on each document change
Especially when several error markers exist, the flashing this causes while editing isn't really nice. Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -91,10 +91,6 @@ void CppEditorSupport::updateDocument()
|
||||
const QList<QTextEdit::ExtraSelection> selections =
|
||||
edit->extraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection);
|
||||
|
||||
if (! selections.isEmpty())
|
||||
edit->setExtraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection,
|
||||
QList<QTextEdit::ExtraSelection>());
|
||||
|
||||
_modelManager->stopEditorSelectionsUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user