tools/magit: don't make new windows too tall
Some popups (like logs or revisions) completely consume the current window.
This commit is contained in:
parent
18a0b059d0
commit
17abb990e4
1 changed files with 3 additions and 3 deletions
|
@ -19,9 +19,9 @@
|
|||
;; magit windows to be visible; especially magit-status).
|
||||
((or (bound-and-true-p git-commit-mode)
|
||||
(derived-mode-p 'magit-mode))
|
||||
(let ((size (cond ((eq buffer-mode 'magit-process-mode) 0.35)
|
||||
((bound-and-true-p git-commit-mode) 0.7)
|
||||
(0.9))))
|
||||
(let ((size (if (eq buffer-mode 'magit-process-mode)
|
||||
0.35
|
||||
0.7)))
|
||||
`(display-buffer-below-selected
|
||||
. ((window-height . ,(truncate (* (window-height) size)))))))
|
||||
;; log/stash/process buffers, unless opened from a magit-status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue