aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-12-27 00:26:54 +0000
committerKim F. Storm2006-12-27 00:26:54 +0000
commit39449da0b446431f7d0e201318d51f11a576c47e (patch)
tree017978cd3f6acac70f1c544af2a006759693677a
parent39bda465731fd393e7af80853b0c4bd08924242a (diff)
downloademacs-39449da0b446431f7d0e201318d51f11a576c47e.tar.gz
emacs-39449da0b446431f7d0e201318d51f11a576c47e.zip
(ido-set-matches-1): Never put current buffer first if
there are other matches.
-rw-r--r--lisp/ido.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 2d4ac214dd1..b398e68319d 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3579,6 +3579,9 @@ for first matching file."
3579 (/= (aref name 0) ?.))) 3579 (/= (aref name 0) ?.)))
3580 (string-match re name)) 3580 (string-match re name))
3581 (cond 3581 (cond
3582 ((and (eq ido-cur-item 'buffer)
3583 (string= name (buffer-name ido-entry-buffer)))
3584 (setq matches (cons item matches)))
3582 ((and full-re (string-match full-re name)) 3585 ((and full-re (string-match full-re name))
3583 (setq full-matches (cons item full-matches))) 3586 (setq full-matches (cons item full-matches)))
3584 ((and suffix-re (string-match suffix-re name)) 3587 ((and suffix-re (string-match suffix-re name))