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

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

[elpa] externals/indent-bars 54722d10a8 037/431: (re-) highlight current


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 54722d10a8 037/431: (re-) highlight current depth stipple on resize
Date: Mon, 16 Sep 2024 12:59:11 -0400 (EDT)

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

    (re-) highlight current depth stipple on resize
---
 indent-bars.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/indent-bars.el b/indent-bars.el
index a37a49b80a..a8d6b1167e 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -741,9 +741,10 @@ not passed they will be calculated."
          (face-remap-add-relative
           'indent-bars-stipple
           :stipple (indent-bars--stipple w h rot)))
-    (if indent-bars--current-depth-stipple
-       (indent-bars--set-current-depth-stipple w h rot))))
-
+    (when indent-bars--current-depth-stipple
+      (indent-bars--set-current-depth-stipple w h rot)
+      (setq indent-bars--current-depth 0)
+      (indent-bars--highlight-current-depth))))
 
 ;;;; Setup and mode
 (defun indent-bars--guess-spacing ()



reply via email to

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