branch: master commit 38f8e45d14a875a5fa1d47d7b7a503fe2a85b3e7 Author: Jimmy Aguilar Mena <kratsbinov...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
swiper.el (swiper-isearch-toggle): Fix candidate jump in toggle Fixes #2065 --- swiper.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swiper.el b/swiper.el index 8310004..36a7d5a 100644 --- a/swiper.el +++ b/swiper.el @@ -1406,7 +1406,8 @@ Intended to be bound in `isearch-mode-map' and `swiper-map'." isearch-string (regexp-quote isearch-string)))) (isearch-exit) - (goto-char (match-beginning 0)) + (goto-char (or (and isearch-forward isearch-other-end) + (point))) (swiper-isearch query)) (ivy-exit-with-action (lambda (_)