From 07c1534ea33c9039ca770651e789219fe75a31ac Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Sep 2022 00:46:35 +0200 Subject: [PATCH] fix(modeline): void-function +modeline-refresh-bars-h error Occurs during non-interactive startup of the user's config (e.g. 'doom doctor'), while :ui (modeline +light) is enabled. This is a makeshift solution until I get around to finishing the +light feature. --- modules/ui/modeline/+light.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/modeline/+light.el b/modules/ui/modeline/+light.el index 17e32c8fc..fed1a341a 100644 --- a/modules/ui/modeline/+light.el +++ b/modules/ui/modeline/+light.el @@ -11,7 +11,7 @@ (defun +modeline--set-var-and-refresh-bars-fn (&optional symbol value) (when symbol (set-default symbol value)) - (when doom-init-time + (when (fboundp '+modeline-refresh-bars-h) (+modeline-refresh-bars-h)))