Use all available columns on window for displaying menu items

This commit is contained in:
Oscar Fuentes 2010-05-19 03:39:34 +02:00
parent fc62c664fd
commit 7e8819dbf2

View file

@ -1440,7 +1440,7 @@ FUNC should leave point at the end of the modified region"
(defun magit-menu-insert-item (text highlight-p)
(let* ((item-width 35)
(max-items-perline 2)
(max-columns (* max-items-perline item-width))
(max-columns (window-width))
(begin)
(current-column (- (point) (line-beginning-position)))
(padding