branch: master
commit 05a7b611d8ef91b9da0575c4cccb94cfb933cbfb
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--reset-state): Support a list of symbols as collection
Fixes #375
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 08719f3..af83c8f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1321,7 +1321,8 @@ This is useful for recursive `ivy-read'."
(byte-code-function-p collection)
(vectorp collection)
(and (consp collection) (listp (car collection)))
- (hash-table-p collection))
+ (hash-table-p collection)
+ (and (listp collection) (symbolp (car collection))))
(setq coll (all-completions "" collection predicate)))
(t
(setq coll collection)))