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

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

[elpa] master 59603df 383/399: swiper.el (swiper--avy-goto): Fix for a s


From: Oleh Krehel
Subject: [elpa] master 59603df 383/399: swiper.el (swiper--avy-goto): Fix for a small amount of cands
Date: Sat, 20 Jul 2019 14:58:04 -0400 (EDT)

branch: master
commit 59603dfe145d0d329a81ef9e78ef991bc7c211c2
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    swiper.el (swiper--avy-goto): Fix for a small amount of cands
    
    Re #2134
---
 swiper.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/swiper.el b/swiper.el
index f004196..75f8181 100644
--- a/swiper.el
+++ b/swiper.el
@@ -319,7 +319,8 @@
             (+ (car (ivy--minibuffer-index-bounds
                      ivy--index ivy--length ivy-height))
                (line-number-at-pos (car candidate))
-               (if (= nlines (1+ ivy-height))
+               (if (or (= nlines (1+ ivy-height))
+                       (< ivy--length ivy-height))
                    0
                  (- ivy-height nlines))
                -2)))



reply via email to

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