Fix #102: The nyan-cat indicator respects nyan-minimum-window-width.

This commit is contained in:
Vincent Zhang 2019-01-24 15:26:51 +08:00
parent 9ca40d04b1
commit 54a5f45182

View file

@ -63,6 +63,7 @@
(defvar mc/mode-line) (defvar mc/mode-line)
(defvar minions-mode) (defvar minions-mode)
(defvar minions-mode-line-lighter) (defvar minions-mode-line-lighter)
(defvar nyan-minimum-window-width)
(defvar persp-nil-name) (defvar persp-nil-name)
(defvar symbol-overlay-keywords-alist) (defvar symbol-overlay-keywords-alist)
(defvar symbol-overlay-temp-symbol) (defvar symbol-overlay-temp-symbol)
@ -1243,7 +1244,8 @@ See `mode-line-percent-position'.")
" %l") " %l")
(column-number-mode (doom-modeline-column-zero-based " :%c" " :%C"))))) (column-number-mode (doom-modeline-column-zero-based " :%c" " :%C")))))
(if (and (bound-and-true-p nyan-mode) (if (and (bound-and-true-p nyan-mode)
(doom-modeline--active)) (doom-modeline--active)
(>= (window-width) nyan-minimum-window-width))
(concat " " (nyan-create) " " (concat " " (nyan-create) " "
(propertize (format-mode-line lc) (propertize (format-mode-line lc)
'help-echo "Buffer position\n\ 'help-echo "Buffer position\n\