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

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

[elpa] externals/ivy-hydra cab01f3 053/395: ivy.el (ivy--reset-state): A


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra cab01f3 053/395: ivy.el (ivy--reset-state): Add listp check
Date: Thu, 25 Feb 2021 08:31:29 -0500 (EST)

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

    ivy.el (ivy--reset-state): Add listp check
    
    In case (= coll 0).
    
    Re emacs-lsp/lsp-ivy#5
---
 ivy.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ivy.el b/ivy.el
index 35dec60..a696887 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2324,6 +2324,7 @@ This is useful for recursive `ivy-read'."
                      (not (eq history 'org-refile-history)))
                  (setq sort-fn (ivy--sort-function
                                 (if (functionp collection) collection caller)))
+                 (listp coll)
                  (null (nthcdr ivy-sort-max-size coll)))
         (setq coll (sort (copy-sequence coll) sort-fn)))
       (setq coll (ivy--set-candidates coll))



reply via email to

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