branch: externals/indent-bars
commit 9d374e06509c72a4cd9ab47b71fcc919c08f2224
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>

    Fix timer teardown and run-hooks (which takes a hook name)
---
 indent-bars-ts.el | 2 +-
 indent-bars.el    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index bf0ece8778..745ca89031 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -304,7 +304,7 @@ both) of them cover."
              l)))
     l))
 
-(defvar indent-bars-ts--scope-timer nil)
+(defvar-local indent-bars-ts--scope-timer nil)
 (defun indent-bars-ts--update-scope1 ()
   "Perform the treesitter scope font-lock update.
 If the buffer is modified or the point has moved, re-query the
diff --git a/indent-bars.el b/indent-bars.el
index a6b0d70eed..1911e72c1e 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1580,7 +1580,7 @@ Adapted from `highlight-indentation-mode'."
               #'indent-bars--extend-blank-line-regions t)
   (remove-hook 'window-state-change-functions
               #'indent-bars--window-change t)
-  (apply #'run-hooks indent-bars--teardown-functions))
+  (run-hooks 'indent-bars--teardown-functions))
 
 (defun indent-bars-reset (&rest _r)
   "Reset indent-bars config."

Reply via email to