branch: master
commit 856e1bdf8a3eb3490a8aa0c2de3cdfa463284740
Author: Ingo Lohmar <[email protected]>
Commit: Ingo Lohmar <[email protected]>
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)))))