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