Fix #3723: auto-revert on window/buffer switch

This commit is contained in:
Henrik Lissner 2020-08-13 22:46:51 -04:00
parent 73c95bb1ad
commit 9cab6a6fd9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -199,7 +199,8 @@ possible."
(defun doom-auto-revert-buffer-h ()
"Auto revert current buffer, if necessary."
(unless (or auto-revert-mode (active-minibuffer-window))
(auto-revert-handler)))
(let ((auto-revert-mode t))
(auto-revert-handler))))
(defun doom-auto-revert-buffers-h ()
"Auto revert stale buffers in visible windows, if necessary."