Don't display window number while there is only one window.

This commit is contained in:
Vincent Zhang 2019-04-15 18:01:50 +08:00
parent be3a20ea44
commit 89c3dc167d

View file

@ -1296,7 +1296,8 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil."
((bound-and-true-p window-numbering-mode) ((bound-and-true-p window-numbering-mode)
(window-numbering-get-number-string)) (window-numbering-get-number-string))
(t "")))) (t ""))))
(if (< 0 (length num)) (if (and (< 0 (length num))
(< 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