Use all available columns on window for displaying menu items
This commit is contained in:
parent
fc62c664fd
commit
7e8819dbf2
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -1440,7 +1440,7 @@ FUNC should leave point at the end of the modified region"
|
||||||
(defun magit-menu-insert-item (text highlight-p)
|
(defun magit-menu-insert-item (text highlight-p)
|
||||||
(let* ((item-width 35)
|
(let* ((item-width 35)
|
||||||
(max-items-perline 2)
|
(max-items-perline 2)
|
||||||
(max-columns (* max-items-perline item-width))
|
(max-columns (window-width))
|
||||||
(begin)
|
(begin)
|
||||||
(current-column (- (point) (line-beginning-position)))
|
(current-column (- (point) (line-beginning-position)))
|
||||||
(padding
|
(padding
|
||||||
|
|
Loading…
Add table
Reference in a new issue