mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #1852: magit not restoring wconf when quitting
This commit is contained in:
@ -64,11 +64,11 @@
|
||||
(add-hook 'doom-switch-buffer-hook #'+magit-refresh-vc-state-maybe-h)
|
||||
|
||||
;;;###autoload
|
||||
(defun +magit/quit (&optional _kill-buffer)
|
||||
(defun +magit/quit (&optional kill-buffer)
|
||||
"Clean up magit buffers after quitting `magit-status' and refresh version
|
||||
control in buffers."
|
||||
(interactive)
|
||||
(quit-window)
|
||||
(interactive "P")
|
||||
(funcall magit-bury-buffer-function kill-buffer)
|
||||
(unless (delq nil
|
||||
(mapcar (lambda (win)
|
||||
(with-selected-window win
|
||||
|
Reference in New Issue
Block a user