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

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

[elpa] externals/ivy-hydra 098f8fe 133/395: swiper.el (swiper-isearch-to


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 098f8fe 133/395: swiper.el (swiper-isearch-toggle): Fix up
Date: Thu, 25 Feb 2021 08:31:47 -0500 (EST)

branch: externals/ivy-hydra
commit 098f8fe5ba92ecec367fa1c8e97176e5f617b163
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    swiper.el (swiper-isearch-toggle): Fix up
    
    Add a `ivy-re-to-str' wrapper. Any presence of `ivy-re-to-str' in code
    is a "TODO" item.
    
    In this case, we need to go to the match start of the generic regex
    than `ivy--regex-ignore-order' uses.
    
    Re raxod502/prescient.el#51
---
 swiper.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index af9ae13..22c1de4 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1695,7 +1695,7 @@ Intended to be bound in `isearch-mode-map' and 
`swiper-map'."
         (swiper-isearch query))
     (ivy-exit-with-action
      (lambda (_)
-       (when (looking-back ivy-regex (line-beginning-position))
+       (when (looking-back (ivy-re-to-str ivy-regex) (line-beginning-position))
          (goto-char (match-beginning 0)))
        (isearch-mode t)
        (unless (string= ivy-text "")



reply via email to

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