From 07a9765faacac296d46d89f264a6cca21fbe5fb5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 9 Jul 1993 04:04:39 +0000 Subject: [PATCH] (mouse-menu-bar-buffers): Don't lose if all buffer names are short. --- lisp/menu-bar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 5da62849bc..c4a2ea013b 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -197,7 +197,7 @@ and selects that window." (setq maxlen (length (car (car head)))))) (setq tail (cdr tail))) (nconc (reverse head) - (list (cons (concat (make-string (- (/ maxlen 2) 8) ?\ ) + (list (cons (concat (make-string (max 0 (- (/ maxlen 2) 8)) ?\ ) "List All Buffers") 'list-buffers))))))) -- 2.39.2