mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Don't display window number while there is only one window.
This commit is contained in:
parent
be3a20ea44
commit
89c3dc167d
1 changed files with 2 additions and 1 deletions
|
@ -1296,7 +1296,8 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil."
|
|||
((bound-and-true-p window-numbering-mode)
|
||||
(window-numbering-get-number-string))
|
||||
(t ""))))
|
||||
(if (< 0 (length num))
|
||||
(if (and (< 0 (length num))
|
||||
(< 1 (length (window-list))))
|
||||
(propertize (format " %s " num)
|
||||
'face (if (doom-modeline--active)
|
||||
'doom-modeline-buffer-major-mode
|
||||
|
|
Loading…
Reference in a new issue