branch: externals/ivy-hydra
commit c0b61ea536c54025b0be393bad9cccf6e5c1a5e8
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
swiper.el (swiper--query-replace-setup): Highlight at eobp
Fixes #2289
---
swiper.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/swiper.el b/swiper.el
index c926d88..3e2ecb8 100644
--- a/swiper.el
+++ b/swiper.el
@@ -175,8 +175,7 @@ Treated as non-nil when searching backwards."
(re (ivy--regex ivy-text)))
(save-excursion
(beginning-of-line)
- (while (and (re-search-forward re end t)
- (not (eobp)))
+ (while (re-search-forward re end t)
(let ((ov (make-overlay (1- (match-end 0)) (match-end 0)))
(md (match-data t)))
(overlay-put
@@ -228,6 +227,7 @@ Treated as non-nil when searching backwards."
(ivy-configure 'swiper-query-replace
:update-fn #'swiper--query-replace-updatefn)
+(put 'swiper-query-replace 'no-counsel-M-x t)
(defvar inhibit-message)