Fix: flash window number while re-enabling ace-window-display-mode.

This commit is contained in:
Vincent Zhang 2018-11-16 01:45:52 +08:00
parent 9df9260ab3
commit c7251193bb

View file

@ -1036,9 +1036,10 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil."
(doom-modeline-def-segment window-number
(let ((num (cond
((bound-and-true-p ace-window-display-mode)
(setq-default mode-line-format
(assq-delete-all 'ace-window-display-mode
(default-value 'mode-line-format)))
(setq mode-line-format
(assq-delete-all 'ace-window-display-mode
(default-value 'mode-line-format)))
(setq-default mode-line-format mode-line-format)
(aw-update)
(window-parameter (selected-window) 'ace-window-path))
((bound-and-true-p winum-mode)