emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 38f8e45 242/399: swiper.el (swiper-isearch-toggle): Fix ca


From: Oleh Krehel
Subject: [elpa] master 38f8e45 242/399: swiper.el (swiper-isearch-toggle): Fix candidate jump in toggle
Date: Sat, 20 Jul 2019 14:57:32 -0400 (EDT)

branch: master
commit 38f8e45d14a875a5fa1d47d7b7a503fe2a85b3e7
Author: Jimmy Aguilar Mena <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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 (_)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]