diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java index 682db8848c36..f991747ef7b4 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java @@ -315,7 +315,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass { if (HighlightingLevelManager.getInstance(project).shouldInspect(hostFile)) { PsiElement adjustedElement = psiElement; int adjustedOffset = offset; - if (psiElement instanceof PsiWhiteSpace) { + if (psiElement instanceof PsiWhiteSpace && offset == psiElement.getTextRange().getStartOffset()) { final PsiElement prev = psiElement.getPrevSibling(); if (prev != null) { adjustedElement = prev;