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

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

[elpa] master 856e1bd 02/90: ivy.el (ivy-next-line): Fix wraparound at e


From: Oleh Krehel
Subject: [elpa] master 856e1bd 02/90: ivy.el (ivy-next-line): Fix wraparound at end of candidates
Date: Tue, 30 Jun 2015 07:27:56 +0000

branch: master
commit 856e1bdf8a3eb3490a8aa0c2de3cdfa463284740
Author: Ingo Lohmar <address@hidden>
Commit: Ingo Lohmar <address@hidden>

    ivy.el (ivy-next-line): Fix wraparound at end of candidates
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index dd79848..4ae0c4e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -392,7 +392,7 @@ If the text hasn't changed as a result, forward to 
`ivy-alt-done'."
   (interactive "p")
   (setq arg (or arg 1))
   (cl-incf ivy--index arg)
-  (when (>= ivy--index (1- ivy--length))
+  (when (> ivy--index (1- ivy--length))
     (if ivy-wrap
         (ivy-beginning-of-buffer)
       (setq ivy--index (1- ivy--length)))))



reply via email to

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