branch: externals/ivy-hydra
commit cab01f3f8485d972d3632d8b6456c698396b5052
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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))