no highlighting, fix only: check range included (IDEA-191254)

This commit is contained in:
Anna Kozlova
2018-05-02 20:06:11 +02:00
parent d56ddff7b8
commit 933e30cdce
@@ -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++) {