aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2005-02-16 21:36:41 +0000
committerKim F. Storm <[email protected]>2005-02-16 21:36:41 +0000
commit4260edddba8cccb5522bbe3f61a8ffd1af43ab19 (patch)
tree6773756fd1d59fafba6f71203fe7bef616260a3a /lisp
parent4aed6e1eae5234afff7b7b080cb0a9f23fa82c0d (diff)
(ido-fallback-command): Pass user input to fallback command.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ido.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 389ddb0b9a..86a88d0d49 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -2280,6 +2280,9 @@ If no buffer or file exactly matching the prompt exists, maybe create a new one.
(defun ido-fallback-command ()
"Fallback to non-ido version of current command."
(interactive)
+ (let ((i (length ido-text)))
+ (while (> i 0)
+ (push (aref ido-text (setq i (1- i))) unread-command-events)))
(setq ido-exit 'fallback)
(exit-minibuffer))