From 39449da0b446431f7d0e201318d51f11a576c47e Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 27 Dec 2006 00:26:54 +0000 Subject: [PATCH] (ido-set-matches-1): Never put current buffer first if there are other matches. --- lisp/ido.el | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.2