浏览代码

Delete duplicates from collection before completion

Ryan C. Thompson 11 年之前
父节点
当前提交
1b74a85fe6
共有 1 个文件被更改,包括 2 次插入1 次删除
  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