Fix #3726: respect +magit-open-windows-in-direction
Also fixes an issue where `q` would not delete a magit-dedicated split window (leaving duplicate magit-status windows about).
This commit is contained in:
parent
050ac73789
commit
95c5ebc01a
2 changed files with 19 additions and 10 deletions
|
@ -75,7 +75,8 @@ For example, diffs and log buffers. Accepts `left', `right', `up', and `down'.")
|
|||
;; 2. The status screen isn't buried when viewing diffs or logs from the
|
||||
;; status screen.
|
||||
(setq transient-display-buffer-action '(display-buffer-below-selected)
|
||||
magit-display-buffer-function #'+magit-display-buffer-fn)
|
||||
magit-display-buffer-function #'+magit-display-buffer-fn
|
||||
magit-bury-buffer-function #'magit-mode-quit-window)
|
||||
(set-popup-rule! "^\\(?:\\*magit\\|magit:\\| \\*transient\\*\\)" :ignore t)
|
||||
(add-hook 'magit-popup-mode-hook #'hide-mode-line-mode)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue