summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/buff-menu.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index e2aa2da0388..dcf5b0f3888 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -671,7 +671,8 @@ means list those buffers and no others."
(file buffer-file-name))
(when (and (buffer-live-p buffer)
(or buffer-list
- (and (not (string= (substring name 0 1) " "))
+ (and (or (not (string= (substring name 0 1) " "))
+ file)
(not (eq buffer buffer-menu-buffer))
(or file show-non-file))))
(push (list buffer