Add to minibuffer-history if HISOTRY is nil in ido.el
authorLeo Liu <sdl.web@gmail.com>
Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)
committerLeo Liu <sdl.web@gmail.com>
Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)
It is broken by the change on 2011-03-21.

lisp/ChangeLog
lisp/ido.el

index 9eeac0d..57916aa 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-29  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-read-internal): Use the default history var
+       minibuffer-history if no HISTORY is specified.
+
 2011-03-28  Leo Liu  <sdl.web@gmail.com>
 
        * abbrev.el (abbrev-table-empty-p): New function.
index 177f933..0ce83d9 100644 (file)
@@ -2151,7 +2151,7 @@ If INITIAL is non-nil, it specifies the initial input string."
 
         (t
          (setq done t))))))
-    (and history (add-to-history history ido-selected))
+    (add-to-history (or history 'minibuffer-history) ido-selected)
     ido-selected))
 
 (defun ido-edit-input ()