Fix: flash window number while refreshing this buffer.

This commit is contained in:
Vincent Zhang 2018-11-16 01:37:58 +08:00
parent 489a75ae49
commit 9df9260ab3

View file

@ -1011,7 +1011,7 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
;; window number
;;
;; Fix `ace-window-display' doesn't respect the ignore buffers.
;; HACK: `ace-window-display-mode' should respect the ignore buffers.
(defun doom-modeline-aw-update ()
"Update ace-window-path window parameter for all windows.
@ -1036,9 +1036,9 @@ 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 mode-line-format
(assq-delete-all 'ace-window-display-mode
(default-value 'mode-line-format)))
(setq-default mode-line-format
(assq-delete-all 'ace-window-display-mode
(default-value 'mode-line-format)))
(aw-update)
(window-parameter (selected-window) 'ace-window-path))
((bound-and-true-p winum-mode)