aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ido.el
diff options
context:
space:
mode:
authorJohn Wiegley <[email protected]>2010-04-06 03:02:57 -0400
committerJohn Wiegley <[email protected]>2010-04-06 03:02:57 -0400
commit2a07afc5fe9acb37ed00a65463357b61da8c5cb1 (patch)
tree790f6db548ddf0ea0f66a3cda44be68cadf2d74e /lisp/ido.el
parentf9a27d86155b3f436daa755e2b9d89c71afa8e8d (diff)
Fixed duplicate names appearing in IDO buffer list (using virtuals)
* ido.el (ido-add-virtual-buffers-to-list): Fixed duplicated names appearing in buffer list (if a live buffer name matched a recentf file basename). Should use uniqify to offer a real solution.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r--lisp/ido.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 53b18374d1..8d43dec1f6 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3408,6 +3408,7 @@ This is to make them appear as if they were \"virtual buffers\"."
(and (setq name (file-name-nondirectory head))
(null (get-file-buffer head))
(not (assoc name ido-virtual-buffers))
+ (not (member name ido-temp-list))
(not (ido-ignore-item-p name ido-ignore-buffers))
;;(file-exists-p head)
(push (cons name head) ido-virtual-buffers))))