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

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

[elpa] externals/ivy-hydra 968eea5 057/395: ivy.el (ivy-partial-or-done)


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 968eea5 057/395: ivy.el (ivy-partial-or-done): Check if completion-cycle-threshold is a number
Date: Thu, 25 Feb 2021 08:31:30 -0500 (EST)

branch: externals/ivy-hydra
commit 968eea58b44f0459772cfa57f8114c37a45560b2
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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)



reply via email to

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