diff --git a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/BackgroundUpdateHighlightersUtil.java b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/BackgroundUpdateHighlightersUtil.java index a052c2e62cf9..1b50fd2d77d4 100644 --- a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/BackgroundUpdateHighlightersUtil.java +++ b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/BackgroundUpdateHighlightersUtil.java @@ -311,7 +311,8 @@ public final class BackgroundUpdateHighlightersUtil { TextAttributesKey textAttributesKey = info.forcedTextAttributesKey == null ? info.type.getAttributesKey() : info.forcedTextAttributesKey; highlighter.setTextAttributesKey(textAttributesKey); - if (infoAttributes != null) { + if (infoAttributes == TextAttributes.ERASE_MARKER || + infoAttributes != null && !infoAttributes.equals(highlighter.getTextAttributes(colorsScheme))) { highlighter.setTextAttributes(infoAttributes); }