Skip to content
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

Jumping from the Quickfix list highlights the wrong position #2

Closed
TheBlob42 opened this issue Apr 14, 2022 · 3 comments
Closed

Jumping from the Quickfix list highlights the wrong position #2

TheBlob42 opened this issue Apr 14, 2022 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@TheBlob42
Copy link

Same error as in beacon.nvim see here

When jumping to an entry of the Quickfix list, often the former cursor position is highlighted instead

This should be solvable by "scheduling" the highlight call (see my answer in the linked issue). I am currently on the go so I could not further look into this yet, but maybe you can already figure this out easily 🙂

@rainbowhxch rainbowhxch added the bug Something isn't working label Apr 14, 2022
@rainbowhxch
Copy link
Owner

rainbowhxch commented Apr 14, 2022

Fixed it. Thanks for your feedback and solution.

but maybe you can already figure this out easily

When I understand neovim events more deeply, I will try to solve the problem fundamentally. :)

@rainbowhxch
Copy link
Owner

Just want you know, because #4 I deleted vim.schedule(), after using other cursor position acquisition methods, most of the jumps in quickfix are normal, but there are still some wrong highlights with a difference of one line that I can't solve.

@rainbowhxch
Copy link
Owner

Just want you know, because #4 I deleted vim.schedule(), after using other cursor position acquisition methods, most of the jumps in quickfix are normal, but there are still some wrong highlights with a difference of one line that I can't solve.

Never mind. The conflict in #4 should not affect this issue. It will be rolled back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants