Skip to content

Commit

Permalink
ivy.el (ivy-completion-in-region): Add workaround for package-menu-fi…
Browse files Browse the repository at this point in the history
…lter

Fixes abo-abo#2244
  • Loading branch information
abo-abo authored and astoff committed Jan 1, 2021
1 parent 68e07ba commit 4d82b9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ivy.el
Expand Up @@ -2465,6 +2465,8 @@ See `completion-in-region' for further information."
(string= str (car comps))))
(message "Sole match"))
(t
(when (eq collection #'crm--collection-fn)
(setq comps (delete-dups comps)))
(let* ((len (ivy-completion-common-length (car comps)))
(initial (cond ((= len 0)
"")
Expand Down

0 comments on commit 4d82b9c

Please sign in to comment.