浏览代码

Fix activation condition for electric-default-mode

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

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

@@ -421,7 +421,8 @@ sets up C-j to be equivalent to TAB in the same situation."
 ;; Interoperation with minibuffer-electric-default-mode: only show the
 ;; Interoperation with minibuffer-electric-default-mode: only show the
 ;; default when the input is empty and the empty string is the selected
 ;; default when the input is empty and the empty string is the selected
 (defadvice minibuf-eldef-update-minibuffer (around ido-cr+-compat activate)
 (defadvice minibuf-eldef-update-minibuffer (around ido-cr+-compat activate)
-  (if (ido-active)
+  "This advice allows minibuffer-electric-default-mode to work with ido-cr+."
+  (if (ido-cr+-active)
       (unless (eq minibuf-eldef-showing-default-in-prompt
       (unless (eq minibuf-eldef-showing-default-in-prompt
                   (and (string= (car ido-cur-list) "")
                   (and (string= (car ido-cur-list) "")
                        (string= ido-text "")))
                        (string= ido-text "")))