From b8e73dc982fa9ed9464c62c8eb9db0364044bed3 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 2 Jul 2018 18:10:59 +0800 Subject: [PATCH] Show window number while the count of windows is greater than 2. --- doom-modeline.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index f53bacf..c239c99 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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