Skip to content

Commit

Permalink
ivy.el (ivy--reset-state): Remove empty string from coll
Browse files Browse the repository at this point in the history
Fixes #1230
  • Loading branch information
abo-abo committed Oct 10, 2017
1 parent a6e15e6 commit c9f86b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ivy.el
Expand Up @@ -1794,6 +1794,7 @@ This is useful for recursive `ivy-read'."
(setq coll (all-completions "" collection predicate)))
(t
(setq coll collection)))
(setq coll (delete "" coll))
(when def
(cond ((listp def)
(setq coll (cl-union def coll :test 'equal)))
Expand Down

0 comments on commit c9f86b5

Please sign in to comment.