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

(ido-set-matches-1): Never put current buffer first if

there are other matches.
This commit is contained in:
Kim F. Storm 2006-12-27 00:26:54 +00:00
parent 39bda46573
commit 39449da0b4

View File

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