From 4ef93c7aabd6a485eec6e9eeb68bda6f681f892f Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 2 Jul 2018 18:26:19 +0800 Subject: [PATCH] Ignore minibuffer while counting windows. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index c239c99..054c4e6 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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