From 89c3dc167da26e97ccf661b7ef28176f4297cc19 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 15 Apr 2019 18:01:50 +0800 Subject: [PATCH] Don't display window number while there is only one window. --- doom-modeline-segments.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index a824c7c..44c0593 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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