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

swiper-all doesn't revert to starting point when cancelled (C-g) #3023

Open
gc1o1 opened this issue Sep 8, 2023 · 0 comments
Open

swiper-all doesn't revert to starting point when cancelled (C-g) #3023

gc1o1 opened this issue Sep 8, 2023 · 0 comments

Comments

@gc1o1
Copy link

gc1o1 commented Sep 8, 2023

The expected behavior

I start swiper or swiper-isearch. I go to another finding in the mini-buffer (with C-n and C-p). I don't press Enter. Instead, I decide to cancel (C-g) the search. I am sent back to the point where I was when I started swiper. That's good, it's the intended behavior. There is explicit code to do that. See variable swiper-stay-on-quit which is described as "When non-nil don't go back to search start on abort.", and it's nil, so, the default behavior is indeed to go back on abort.

The bug

However, this isn't used by swiper-all and swiper-all.
So, if you navigate around in the mini-buffer with C-n and C-p, and (before pressing Enter) you press C-g, you'll be stuck where you last navigated, as if you had pressed Enter to actually go there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant