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
|
||||
(kill-local-variable '+magit--stale-p)
|
||||
(when (magit-auto-revert-repository-buffer-p buffer)
|
||||
(when (bound-and-true-p vc-mode)
|
||||
(vc-refresh-state))
|
||||
(when (and buffer-file-name (not (buffer-modified-p buffer)))
|
||||
(revert-buffer t t t))
|
||||
(force-mode-line-update))))
|
||||
(save-restriction
|
||||
(when (bound-and-true-p vc-mode)
|
||||
(vc-refresh-state))
|
||||
(when (and buffer-file-name (not (buffer-modified-p buffer)))
|
||||
(revert-buffer t t t))
|
||||
(force-mode-line-update)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +magit-mark-stale-buffers-h ()
|
||||
|
Reference in New Issue
Block a user