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.
This commit is contained in:
Henrik Lissner 2022-09-26 00:46:35 +02:00
parent 39b8934236
commit 07c1534ea3
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)))