Ignore minibuffer while counting windows.

This commit is contained in:
Vincent Zhang 2018-07-02 18:26:19 +08:00
parent b8e73dc982
commit 4ef93c7aab

View file

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