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
swiper-avy jumps to wrong line #1541
Comments
Thanks for the report. PRs welcome. I'm on vacation until Wednesday, so I can't code much until then. |
Wish you fun and rest. :) |
Same problem here. Hoping it'd be fixed in the future! |
Thanks all, this should finally be fixed now. Please test. |
Thanks @abo-abo, can confirm it fixes the issue I was having. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recipe
make plain
swiper.el
RETswiper
Discussion
My instinct tells me this behaviour might be related to the fact that candidate positions are calculated with narrowing in effect:
swiper/swiper.el
Lines 188 to 199 in 187d826
whereas the
line-number-at-pos
call is in a widened context:swiper/swiper.el
Lines 213 to 220 in 187d826
By the way,
candidates
collection, as it currently stands, can be made a bit more efficient:The text was updated successfully, but these errors were encountered: