changeset 69524:1e827d428dd6

(ido-edit-input): Use selected match, if any.
author Kim F. Storm <storm@cua.dk>
date Thu, 16 Mar 2006 22:23:22 +0000
parents fe914e3be7be
children 2d6fdbec2ac5
files lisp/ido.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ido.el	Thu Mar 16 22:23:12 2006 +0000
+++ b/lisp/ido.el	Thu Mar 16 22:23:22 2006 +0000
@@ -1973,7 +1973,7 @@
 (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))