branch: master
commit 2989f2512e54b1d27b81a8fd695e90913c5b1069
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    swiper.el (swiper--update-input-ivy): Fix window-end call
    
    Always refresh, otherwise some candidates may not get highlighted.
---
 swiper.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index addf609..56e8d54 100644
--- a/swiper.el
+++ b/swiper.el
@@ -583,7 +583,7 @@ Matched candidates should have `swiper-invocation-face'."
         (swiper--add-overlays
          re
          (max (window-start) swiper--point-min)
-         (min (window-end) swiper--point-max))))))
+         (min (window-end (selected-window) t) swiper--point-max))))))
 
 (defun swiper--add-overlays (re &optional beg end wnd)
   "Add overlays for RE regexp in visible part of the current buffer.

Reply via email to