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

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

[elpa] externals/ivy-hydra 47e5046 027/395: swiper.el (swiper--isearch-f


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 47e5046 027/395: swiper.el (swiper--isearch-function-1): Don't skip match at eobp
Date: Thu, 25 Feb 2021 08:31:24 -0500 (EST)

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

    swiper.el (swiper--isearch-function-1): Don't skip match at eobp
---
 swiper.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index 3ef52dc..c926d88 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1362,7 +1362,9 @@ See `ivy-format-functions-alist' for further information."
       (save-excursion
         (goto-char (if backward (point-max) (point-min)))
         (while (and (funcall (if backward #'re-search-backward 
#'re-search-forward) re nil t)
-                    (not (if backward (bobp) (eobp))))
+                    (not (and
+                          (= (match-beginning 0) (match-end 0))
+                          (if backward (bobp) (eobp)))))
           (when (swiper-match-usable-p)
             (let ((pos (if (or backward swiper-goto-start-of-match)
                            (match-beginning 0)



reply via email to

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