diff options
author | Kim F. Storm <storm@cua.dk> | 2006-12-27 00:26:54 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2006-12-27 00:26:54 +0000 |
commit | 39449da0b446431f7d0e201318d51f11a576c47e (patch) | |
tree | 017978cd3f6acac70f1c544af2a006759693677a /lisp/ido.el | |
parent | 39bda465731fd393e7af80853b0c4bd08924242a (diff) | |
download | emacs-39449da0b446431f7d0e201318d51f11a576c47e.tar.gz |
(ido-set-matches-1): Never put current buffer first if
there are other matches.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 3 |
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." (/= (aref name 0) ?.))) (string-match re name)) (cond + ((and (eq ido-cur-item 'buffer) + (string= name (buffer-name ido-entry-buffer))) + (setq matches (cons item matches))) ((and full-re (string-match full-re name)) (setq full-matches (cons item full-matches))) ((and suffix-re (string-match suffix-re name)) |