From 933e30cdcefddfa0faea74458167c917d193734f Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 1 May 2018 14:16:44 +0300 Subject: [PATCH] no highlighting, fix only: check range included (IDEA-191254) --- .../intellij/codeInsight/daemon/impl/ShowIntentionsPass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 039df0b481ee..5b02b465e298 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 @@ -415,7 +415,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass { super.registerProblem(problemDescriptor); if (problemDescriptor instanceof ProblemDescriptorBase) { final TextRange range = ((ProblemDescriptorBase)problemDescriptor).getTextRange(); - if (range != null && range.contains(offset)) { + if (range != null && range.containsOffset(offset)) { final QuickFix[] fixes = problemDescriptor.getFixes(); if (fixes != null) { for (int k = 0; k < fixes.length; k++) {