From 1e5a5b6d7bb9a07b057257a104bdcdbc23120b09 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 12 May 2019 14:16:40 +0800 Subject: [PATCH] Fix: Support frame for window number. --- doom-modeline-segments.el | 2 +- doom-modeline.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 82e81bf..9fa50ec 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1257,7 +1257,7 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil." (t "")))) (if (and (< 0 (length num)) (< (if (active-minibuffer-window) 2 1) - (length (window-list)))) + (length (cl-mapcan #'window-list (visible-frame-list))))) (propertize (format " %s " num) 'face (if (doom-modeline--active) 'doom-modeline-buffer-major-mode diff --git a/doom-modeline.el b/doom-modeline.el index 619ed1a..b9187ce 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -4,7 +4,7 @@ ;; Author: Vincent Zhang ;; Homepage: https://github.com/seagle0128/doom-modeline -;; Version: 2.1.1 +;; Version: 2.1.2 ;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (dash "2.11.0")) ;; Keywords: faces mode-line