Not display window number if only one window with minibuffer.

This commit is contained in:
Vincent Zhang 2019-05-06 06:02:59 +08:00
parent 3e5edc255c
commit 8d8225be5c

View file

@ -1257,7 +1257,8 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil."
(window-numbering-get-number-string)) (window-numbering-get-number-string))
(t "")))) (t ""))))
(if (and (< 0 (length num)) (if (and (< 0 (length num))
(< 1 (length (window-list)))) (< (if (active-minibuffer-window) 2 1)
(length (window-list))))
(propertize (format " %s " num) (propertize (format " %s " num)
'face (if (doom-modeline--active) 'face (if (doom-modeline--active)
'doom-modeline-buffer-major-mode 'doom-modeline-buffer-major-mode