tools/magit: don't kill all magit buffers when quitting one
And mark all outdated buffers, rather than just the ones in the current workgroup.
This commit is contained in:
parent
7727920629
commit
ccaf92b0d3
1 changed files with 6 additions and 7 deletions
|
@ -69,14 +69,13 @@
|
|||
control in buffers."
|
||||
(interactive)
|
||||
(quit-window)
|
||||
(unless (cdr
|
||||
(delq nil
|
||||
(unless (delq nil
|
||||
(mapcar (lambda (win)
|
||||
(with-selected-window win
|
||||
(eq major-mode 'magit-status-mode)))
|
||||
(window-list))))
|
||||
(window-list)))
|
||||
(mapc #'+magit--kill-buffer (magit-mode-get-buffers))
|
||||
(dolist (buffer (doom-buffer-list))
|
||||
(dolist (buffer (buffer-list))
|
||||
(when (buffer-live-p buffer)
|
||||
(if (get-buffer-window buffer)
|
||||
(+magit--refresh-vc-in-buffer buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue