* ido.el (ido-exhibit): Handle ido-enter-matching-directory before
[bpt/emacs.git] / lisp / ido.el
index 9c4e565..ce43e86 100644 (file)
@@ -4482,11 +4482,6 @@ For details of keybindings, see `ido-find-file'."
          (setq ido-exit 'refresh)
          (exit-minibuffer))
 
-       ;; Update the list of matches
-       (setq ido-text contents)
-       (ido-set-matches)
-       (ido-trace "new    " ido-matches)
-
        (when (and ido-enter-matching-directory
                   ido-matches
                   (or (eq ido-enter-matching-directory 'first)
@@ -4500,6 +4495,11 @@ For details of keybindings, see `ido-find-file'."
          (setq ido-exit 'refresh)
          (exit-minibuffer))
 
+       ;; Update the list of matches
+       (setq ido-text contents)
+       (ido-set-matches)
+       (ido-trace "new    " ido-matches)
+
        (when (and (boundp 'ido-enable-virtual-buffers)
                   (not (eq ido-enable-virtual-buffers 'always))
                   (eq ido-cur-item 'buffer)