]> git.eshelyaron.com Git - emacs.git/commitdiff
(ido-edit-input): Use selected match, if any.
authorKim F. Storm <storm@cua.dk>
Thu, 16 Mar 2006 22:23:22 +0000 (22:23 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 16 Mar 2006 22:23:22 +0000 (22:23 +0000)
lisp/ido.el

index cae5446abcde17ecfffad63b315cfdd0d2e4a973..c1d40df5c699a81df1eab0630590ab63ce09a936 100644 (file)
@@ -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))