mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(magit): don't widen repo buffers on auto-revert
Fix: #8378
Amend: 17a870fef8
This commit is contained in:
@ -113,11 +113,12 @@ window that already exists in that direction. It will split otherwise."
|
|||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(kill-local-variable '+magit--stale-p)
|
(kill-local-variable '+magit--stale-p)
|
||||||
(when (magit-auto-revert-repository-buffer-p buffer)
|
(when (magit-auto-revert-repository-buffer-p buffer)
|
||||||
|
(save-restriction
|
||||||
(when (bound-and-true-p vc-mode)
|
(when (bound-and-true-p vc-mode)
|
||||||
(vc-refresh-state))
|
(vc-refresh-state))
|
||||||
(when (and buffer-file-name (not (buffer-modified-p buffer)))
|
(when (and buffer-file-name (not (buffer-modified-p buffer)))
|
||||||
(revert-buffer t t t))
|
(revert-buffer t t t))
|
||||||
(force-mode-line-update))))
|
(force-mode-line-update)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +magit-mark-stale-buffers-h ()
|
(defun +magit-mark-stale-buffers-h ()
|
||||||
|
Reference in New Issue
Block a user