summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/buff-menu.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index 359d6381e8b..aa5c47ca7f4 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -77,9 +77,9 @@ but will never be narrower than 19 characters."
;; This gives 19 on an 80 column window, and take up
;; proportionally more space as the window widens.
(min (truncate (/ (window-width) 4.2))
- (seq-max (mapcar (lambda (b)
- (length (buffer-name b)))
- buffers)))))
+ (apply #'max 0 (mapcar (lambda (b)
+ (length (buffer-name b)))
+ buffers)))))
(defcustom Buffer-menu-name-width #'Buffer-menu--dynamic-name-width
"Width of buffer name column in the Buffer Menu.