]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-menu-bar-buffers):
authorRichard M. Stallman <rms@gnu.org>
Fri, 9 Jul 1993 04:04:39 +0000 (04:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 9 Jul 1993 04:04:39 +0000 (04:04 +0000)
Don't lose if all buffer names are short.

lisp/menu-bar.el

index 5da62849bc24f9d541e9fbebd13dd118f1e540bc..c4a2ea013b8db68d44b48efa57a0bd223e5f237b 100644 (file)
@@ -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)))))))