-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goto Definition is off by one #154
Comments
Weird. This is definitely a regression, but I can indeed reproduce it 😕 I'm not actively writing any Agda these days, so it might take some time to tackle this one. |
This is almost certainly the problem: Line 68 in 06d6020
which a quick fix might be let buffer_idx = toBytes contents $ incIndex $ zeroIndex $ ds_position ds The vim API has at least four different indexing modes, and it's hard to make sure we pick the right one in each case :( |
Workaround for isovector#154
Nice! I just tested it in a fork, and it indeed fixes the bug. 👍 Thanks for the quick help! 👏
Yeah, I can imagine... I yet have to find a text editor API, which doesn't make me want to pull my hair out ;) |
Consider the following code:
If using
CornelisGotoDefinition
on thex
in the definition ofy
, then the cursor jumps not to the line withx : ℕ
, but to the empty line above it. This seems to happen independently of what code is around the definition and how far the uses and definitions are apart from each other.Thanks for the great plugin! <3
I'm currently switching from emacs to nvim, and apart from #153 and #121 this plugin seems to have everything I need. Keep up the great work! :)
The text was updated successfully, but these errors were encountered: