mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Properly highlight reference ranges even if target modified with goto declaration extension point
This commit is contained in:
@@ -398,7 +398,7 @@ public class CtrlMouseHandler extends AbstractProjectComponent {
|
||||
}
|
||||
else if (targetElements.length == 1) {
|
||||
if (targetElements[0] != resolvedElement && elementAtPointer != null && targetElements[0].isPhysical()) {
|
||||
return new InfoSingle(elementAtPointer, targetElements[0]);
|
||||
return ref != null ? new InfoSingle(ref, targetElements[0]) : new InfoSingle(elementAtPointer, targetElements[0]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user