merlin
merlin copied to clipboard
discrepancies between locate and occurrences
Consider the code fragment x+y
.
With the cursor on +
, locate
will find the definition of the operator +
, whereas occurrences
will find all occurrences of x
.
With the cursor on y
, locate
picks y
but occurrences
picks +
.
I'd say locate
is right; ie, prefer a thing starting at the position to one ending there.
ack. I added a test reproducing the issue.