mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix #102: The nyan-cat indicator respects nyan-minimum-window-width.
This commit is contained in:
parent
9ca40d04b1
commit
54a5f45182
1 changed files with 3 additions and 1 deletions
|
@ -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\
|
||||||
|
|
Loading…
Reference in a new issue