Fix #1852: magit not restoring wconf when quitting
This commit is contained in:
parent
3471828f9e
commit
19bfb1285d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue