From 8d8225be5c24a5224607fd671e4c06e602bc2a76 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 6 May 2019 06:02:59 +0800 Subject: [PATCH] Not display window number if only one window with minibuffer. --- 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 26c7251..3e11850 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1257,7 +1257,8 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil." (window-numbering-get-number-string)) (t "")))) (if (and (< 0 (length num)) - (< 1 (length (window-list)))) + (< (if (active-minibuffer-window) 2 1) + (length (window-list)))) (propertize (format " %s " num) 'face (if (doom-modeline--active) 'doom-modeline-buffer-major-mode