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)
|
(add-hook 'doom-switch-buffer-hook #'+magit-refresh-vc-state-maybe-h)
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +magit/quit (&optional _kill-buffer)
|
(defun +magit/quit (&optional kill-buffer)
|
||||||
"Clean up magit buffers after quitting `magit-status' and refresh version
|
"Clean up magit buffers after quitting `magit-status' and refresh version
|
||||||
control in buffers."
|
control in buffers."
|
||||||
(interactive)
|
(interactive "P")
|
||||||
(quit-window)
|
(funcall magit-bury-buffer-function kill-buffer)
|
||||||
(unless (delq nil
|
(unless (delq nil
|
||||||
(mapcar (lambda (win)
|
(mapcar (lambda (win)
|
||||||
(with-selected-window win
|
(with-selected-window win
|
||||||
|
Reference in New Issue
Block a user