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

    guard against invalid space-width
---
 indent-bars.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/indent-bars.el b/indent-bars.el
index 5142678a6f..d97e2d9ff5 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -734,8 +734,9 @@ both variable pitch and fixed pitch fonts."
   (let ((win (or win (selected-window))))
     (with-selected-window win
       (or (when-let* ((ff (face-font 'default))
-                     (fi (font-info ff)))
-           (aref fi 10))
+                     (fi (font-info ff))
+                     (space-width (aref fi 10)))
+           (and (natnump space-width) (> space-width 0) space-width))
          (window-font-width)))))
 
 (defun indent-bars--stipple-face-spec (w h rot &optional style stipple)

Reply via email to