From 118f7084ff62f8b0f7a10d0a5c68144ae7b59882 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 10 Jun 2019 15:41:13 +0800 Subject: [PATCH] Revert: Refresh the mode-line forcedly after switching frames. Revert 62f48c062ee02b2f07a7b19ed52496e9927b9c24. Close #186. --- doom-modeline-core.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 9861107..4de9853 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -441,9 +441,6 @@ If the actual char height is larger, it respects the actual char height.") (add-hook 'after-make-frame-functions #'doom-modeline-set-selected-window) (add-hook 'delete-frame-functions #'doom-modeline-set-selected-window) (advice-add #'handle-switch-frame :after #'doom-modeline-set-selected-window) -(advice-add #'handle-switch-frame :after #'(lambda (&rest _) - "Rever the current buffer." - (ignore-errors (revert-buffer t t)))) (with-no-warnings (cond ((not (boundp 'after-focus-change-function)) (add-hook 'focus-in-hook #'doom-modeline-set-selected-window)