Assume, for example, the head of matches is "RSS" and user input is
"rs". If the user hit RET, "RSS" is selected but "rs" is added to the
history. This commit fixes this inconsistency.
+2011-03-21 Leo Liu <sdl.web@gmail.com>
+
+ * ido.el (ido-read-internal): Add ido-selected to history instead
+ of user input.
+
2011-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
* subr.el (deferred-action-list, deferred-action-function):
(ido-completing-read t)
(ido-require-match require-match)
(ido-use-mycompletion-depth (1+ (minibuffer-depth)))
- (show-paren-mode nil))
+ (show-paren-mode nil)
+ ;; Postpone history adding till later
+ (history-add-new-input nil))
;; prompt the user for the file name
(setq ido-exit nil)
(setq ido-final-text
(t
(setq done t))))))
+ (and history (add-to-history history ido-selected))
ido-selected))
(defun ido-edit-input ()