mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-141145 Smart step-into doesn't work for multiline statement
This commit is contained in:
@@ -119,7 +119,9 @@ public class JavaSmartStepIntoHandler extends JvmSmartStepIntoHandler {
|
||||
|
||||
@Override
|
||||
public void visitStatement(PsiStatement statement) {
|
||||
if (lineRange.intersects(statement.getTextRange())) {
|
||||
TextRange range = statement.getTextRange();
|
||||
if (lineRange.intersects(range)) {
|
||||
textRange.set(textRange.get().union(range));
|
||||
super.visitStatement(statement);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ public class RequestHint {
|
||||
}
|
||||
else {
|
||||
Range<Integer> exprLines = myMethodFilter.getCallingExpressionLines();
|
||||
return exprLines != null && locationPosition.getLine() >= exprLines.getFrom() && locationPosition.getLine() <= exprLines.getTo();
|
||||
return exprLines != null && exprLines.isWithin(locationPosition.getLine());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user