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

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

[elpa] master 05a7b61 070/272: ivy.el (ivy--reset-state): Support a list


From: Oleh Krehel
Subject: [elpa] master 05a7b61 070/272: ivy.el (ivy--reset-state): Support a list of symbols as collection
Date: Mon, 25 Apr 2016 10:13:17 +0000

branch: master
commit 05a7b611d8ef91b9da0575c4cccb94cfb933cbfb
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)))



reply via email to

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