Explorar el Código

Delete duplicates from collection before completion

Ryan C. Thompson hace 11 años
padre
commit
1b74a85fe6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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