branch: externals/indent-bars
commit 6f4b8d124b1d839daf328c253792660ca3934fdd
Author: JD Smith <93749+jdtsm...@users.noreply.github.com>
Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>

    Check for `font-info' being bound before using
---
 indent-bars.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/indent-bars.el b/indent-bars.el
index bd6792ce86..48da29c538 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -733,7 +733,8 @@ If WIN is not provided, the selected window is used.  This 
works for
 both variable pitch and fixed pitch fonts."
   (let ((win (or win (selected-window))))
     (with-selected-window win
-      (or (when-let* ((ff (face-font 'default))
+      (or (when-let* (( (fboundp 'font-info))
+                     (ff (face-font 'default))
                      (fi (font-info ff))
                      (space-width (aref fi 10)))
            (and (natnump space-width) (> space-width 0) space-width))

Reply via email to