emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/indent-bars 57183c26e6 114/431: highlight-current-depth


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 57183c26e6 114/431: highlight-current-depth: guard against missing current-depth
Date: Mon, 16 Sep 2024 12:59:19 -0400 (EDT)

branch: externals/indent-bars
commit 57183c26e60fd8cf15911d80f2df5347bdf8be6a
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    highlight-current-depth: guard against missing current-depth
---
 indent-bars.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indent-bars.el b/indent-bars.el
index 5941284d26..201a1e75a8 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -883,7 +883,7 @@ ROT are as in `indent-bars--stipple', and have similar 
default values."
   "Refresh current indentation depth highlight.
 Works by remapping the appropriate indent-bars-N face."
   (let ((depth (indent-bars--current-indentation-depth)))
-    (when (not (= depth indent-bars--current-depth))
+    (when (and depth (not (= depth indent-bars--current-depth)))
       (if indent-bars--remap-face      ; out with the old
          (face-remap-remove-relative indent-bars--remap-face))
       (setq indent-bars--current-depth depth)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]