Fix flicker issue with hydra.

Don't redisplay in fit-window-to-buffer.

https://emacs-china.org/t/hydra-doom-modeline/11537/2
https://github.com/seagle0128/doom-modeline/issues/183
This commit is contained in:
Vincent Zhang 2020-01-14 03:58:18 +08:00
parent 6fcf65d2ef
commit 5fef621061

View file

@ -700,7 +700,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers."
(unless doom-modeline--size-hacked-p
(setq doom-modeline--size-hacked-p t)
(redisplay t)))
(advice-add #'fit-window-to-buffer :before #'doom-modeline-redisplay)
;; (advice-add #'fit-window-to-buffer :before #'doom-modeline-redisplay)
(advice-add #'resize-temp-buffer-window :before #'doom-modeline-redisplay)
;; Keep `doom-modeline-current-window' up-to-date