Show window number while the count of windows is greater than 2.

This commit is contained in:
Vincent Zhang 2018-07-02 18:10:59 +08:00
parent ed7027dbc9
commit b8e73dc982

View file

@ -890,7 +890,8 @@ Returns \"\" to not break --no-window-system."
(advice-add #'window-numbering-clear-mode-line :override #'ignore)
(doom-modeline-def-segment window-number
(if (bound-and-true-p window-numbering-mode)
(if (and (bound-and-true-p window-numbering-mode)
(< 2 (length (window-list))))
(propertize (format " %s " (window-numbering-get-number-string))
'face (if (doom-modeline--active)
'doom-modeline-bar