mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: Wrong type argument: number-or-marker-p, unspecified.
This commit is contained in:
parent
2bf802e7f5
commit
68362f248e
1 changed files with 4 additions and 1 deletions
|
@ -499,7 +499,10 @@ If the actual char height is larger, it respects the actual char height.")
|
||||||
|
|
||||||
(defun doom-modeline--font-height ()
|
(defun doom-modeline--font-height ()
|
||||||
"Calculate the actual char height of the mode-line."
|
"Calculate the actual char height of the mode-line."
|
||||||
(round (* 0.168 (face-attribute 'mode-line :height))))
|
(let ((height (face-attribute 'mode-line :height)))
|
||||||
|
(round (* 0.168 (if (number-or-marker-p height)
|
||||||
|
height
|
||||||
|
(* (frame-char-height) 10))))))
|
||||||
|
|
||||||
(defun doom-modeline-icon-octicon (&rest args)
|
(defun doom-modeline-icon-octicon (&rest args)
|
||||||
"Display octicon via ARGS."
|
"Display octicon via ARGS."
|
||||||
|
|
Loading…
Reference in a new issue