1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

(ido-edit-input): Use selected match, if any.

This commit is contained in:
Kim F. Storm 2006-03-16 22:23:22 +00:00
parent 76d4eb05f4
commit 6c2a568a1b

View 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))