mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -69,14 +69,13 @@
|
||||
control in buffers."
|
||||
(interactive)
|
||||
(quit-window)
|
||||
(unless (cdr
|
||||
(delq nil
|
||||
(mapcar (lambda (win)
|
||||
(with-selected-window win
|
||||
(eq major-mode 'magit-status-mode)))
|
||||
(window-list))))
|
||||
(unless (delq nil
|
||||
(mapcar (lambda (win)
|
||||
(with-selected-window win
|
||||
(eq major-mode 'magit-status-mode)))
|
||||
(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)
|
||||
|
Reference in New Issue
Block a user