浏览代码

Use test-completion instead of try-completion

Ryan C. Thompson 7 年之前
父节点
当前提交
c26e4c02ea
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      ido-completing-read+.el

+ 3 - 3
ido-completing-read+.el

@@ -780,10 +780,10 @@ called through ido-cr+."
        ;; The current input doesn't exactly match a known option, and...
        (not (member ido-text ido-cur-list))
        ;; The current input doesn't exactly match an option according
-       ;; to `try-completion' (or the collection is not dynamic).
+       ;; to `test-completion' (or the collection is not dynamic).
        (or (not ido-cr+-dynamic-collection)
-           (eq t (try-completion ido-text ido-cr+-dynamic-collection
-                                 (nth 2 ido-cr+-orig-completing-read-args)))))
+           (test-completion ido-text ido-cr+-dynamic-collection
+                            (nth 2 ido-cr+-orig-completing-read-args))))
       (progn
         (ido-cr+--debug-message
          "Overriding C-j behavior for require-match: performing completion instead of exiting with current text. (This might still exit with a match if `ido-confirm-unique-completion' is nil)")