branch: master
commit 12f4771204edb5acf02ef5fa2d83235aaa24a048
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-completion-in-region): Add workaround for package-menu-filter
Fixes #2244
---
ivy.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ivy.el b/ivy.el
index eb6cad4..9bb5cad 100644
--- a/ivy.el
+++ b/ivy.el
@@ -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)
"")