From 68362f248ee386760e7e37ae3e4babb29e68aee2 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 1 Jul 2019 19:42:41 +0800 Subject: [PATCH] Fix: Wrong type argument: number-or-marker-p, unspecified. --- doom-modeline-core.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index a93d05f..529b8cd 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -499,7 +499,10 @@ If the actual char height is larger, it respects the actual char height.") (defun doom-modeline--font-height () "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) "Display octicon via ARGS."