Fix: Support frame for window number.

This commit is contained in:
Vincent Zhang 2019-05-12 14:16:40 +08:00
parent 93517eb854
commit 1e5a5b6d7b
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -4,7 +4,7 @@
;; Author: Vincent Zhang <seagle0128@gmail.com>
;; 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