瀏覽代碼

Fix dot-prefix workaround

Now it only activates if ido-enable-dot-prefix is enabled.
Ryan C. Thompson 8 年之前
父節點
當前提交
2303906f5b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ido-completing-read+.el

+ 1 - 0
ido-completing-read+.el

@@ -205,6 +205,7 @@ completion for them."
           (setq collection (all-completions "" collection predicate))
           ;; Check for a specific bug
           (when (and (version< emacs-version "26.1")
+                     ido-enable-dot-prefix
                      (member "" collection))
             (signal 'ido-cr+-fallback
                     '("ido cannot handle the empty string as an option when `ido-enable-dot-prefix' is non-nil; see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26997")))