branch: externals/ivy-hydra
commit 47e504622b8c49c1c8521d7eabce3ac65deb4bb2
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)