From: Kim F. Storm Date: Thu, 16 Mar 2006 22:23:22 +0000 (+0000) Subject: (ido-edit-input): Use selected match, if any. X-Git-Tag: emacs-pretest-22.0.90~3565 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c2a568a1b77b48366818ffa48cc77e944955307;p=emacs.git (ido-edit-input): Use selected match, if any. --- diff --git a/lisp/ido.el b/lisp/ido.el index cae5446abcd..c1d40df5c69 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -1973,7 +1973,7 @@ If INITIAL is non-nil, it specifies the initial input string." (defun ido-edit-input () "Edit absolute file name entered so far with ido; terminate by RET." (interactive) - (setq ido-text-init ido-text) + (setq ido-text-init (if ido-matches (car ido-matches) ido-text)) (setq ido-exit 'edit) (exit-minibuffer))