tools/magit: reuse magit-status window
Instead of opening the same buffer in a new window.
This commit is contained in:
parent
ea65f82e4d
commit
6b5d65b55b
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
|||
(let ((buffer-mode (buffer-local-value 'major-mode buffer)))
|
||||
(display-buffer
|
||||
buffer (cond
|
||||
((and (eq buffer-mode 'magit-status-mode)
|
||||
(get-buffer-window buffer))
|
||||
'(display-buffer-reuse-window))
|
||||
;; Any magit buffers opened from a commit window should open below
|
||||
;; it. Also open magit process windows below.
|
||||
((or (bound-and-true-p git-commit-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue