Przeglądaj źródła

Delete duplicates from collection before completion

Ryan C. Thompson 11 lat temu
rodzic
commit
1b74a85fe6
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      ido-ubiquitous.el

+ 2 - 1
ido-ubiquitous.el

@@ -540,7 +540,8 @@ completion for them."
          ;; avoid unnecessary work if ido isn't going to used.
          (--ignore ;; (Return value doesn't matter).
           (when (and ido-allowed collection-ok)
-            (setq collection (all-completions "" collection predicate)
+            (setq collection
+                  (delete-dups (all-completions "" collection predicate))
                   ;; Don't need this any more
                   predicate nil)))
          (colection-ok