branch: externals/ivy-hydra
commit 968eea58b44f0459772cfa57f8114c37a45560b2
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-partial-or-done): Check if completion-cycle-threshold is a
number
Fixes #2333
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 37e92a0..ccef371 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1090,7 +1090,8 @@ When this directory doesn't exist, return nil."
If the text hasn't changed as a result, forward to `ivy-alt-done'."
(interactive)
(cond
- ((and completion-cycle-threshold (< (length ivy--all-candidates)
completion-cycle-threshold))
+ ((and (numberp completion-cycle-threshold)
+ (< (length ivy--all-candidates) completion-cycle-threshold))
(let ((ivy-wrap t))
(ivy-next-line)))
((and (eq (ivy-state-collection ivy-last) #'read-file-name-internal)