merlin icon indicating copy to clipboard operation
merlin copied to clipboard

discrepancies between locate and occurrences

Open mattiase opened this issue 3 years ago • 1 comments

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.

mattiase avatar Nov 17 '21 14:11 mattiase

ack. I added a test reproducing the issue.

voodoos avatar Dec 17 '21 13:12 voodoos