Always show window numbers in all frames.

This commit is contained in:
Vincent Zhang 2018-07-02 20:31:11 +08:00
parent 28000c45f4
commit ff3bd48b34

View file

@ -901,8 +901,7 @@ Returns \"\" to not break --no-window-system."
((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 (and (< 0 (length num)) (if (< 0 (length num))
(< 2 (length (window-list nil 'ignore))))
(propertize (format " %s " num) (propertize (format " %s " num)
'face (if (doom-modeline--active) 'face (if (doom-modeline--active)
'doom-modeline-bar 'doom-modeline-bar