summaryrefslogtreecommitdiff
path: root/lisp/buff-menu.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/buff-menu.el')
-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 6a65749e0c5..e9288d528ec 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -564,7 +564,8 @@ means list those buffers and no others."
(buffer (get-buffer-create "*Buffer List*")))
(with-current-buffer buffer
(Buffer-menu-mode)
- (setq Buffer-menu-files-only (and files-only (>= files-only 0)))
+ (setq Buffer-menu-files-only
+ (and files-only (>= (prefix-numeric-value files-only) 0)))
(list-buffers--refresh buffer-list old-buffer)
(tabulated-list-print))
buffer))