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

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

[elpa] externals/indent-bars 2d30dc37cc 206/431: indent-bars-ts: comment


From: ELPA Syncer
Subject: [elpa] externals/indent-bars 2d30dc37cc 206/431: indent-bars-ts: comment improvements
Date: Mon, 16 Sep 2024 12:59:29 -0400 (EDT)

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

    indent-bars-ts: comment improvements
---
 indent-bars-ts.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index 75b38ef85f..4e3d503894 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -219,6 +219,7 @@ scope."
   "Display indentation bars, accounting for current treesitter scope."
   (if (indent-bars-ts--out-of-scope (match-beginning 1))
       (indent-bars--display indent-bars-ts-out-scope-style)
+    ;; In scope: switch from out to in-scope style
     (indent-bars--display indent-bars-ts-out-scope-style
                          (ibts/start-bars ibtcs)
                          indent-bars-style)))
@@ -291,7 +292,7 @@ both)."
 (defun indent-bars-ts--update-scope ()
   "Update treesit scope when possible."
   (if-let ((tmr indent-bars--highlight-timer))
-      (progn
+      (progn ; reschedule timer
        (timer-set-time
         tmr (time-add (current-time) indent-bars-ts-update-delay))
        (unless (memq tmr timer-list) (timer-activate tmr)))



reply via email to

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