branch: externals/indent-bars
commit 8703bb7d8eaa07b00353aaa12017b0cba98502c8
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>
ts--context-fontify: handle narrowed buffers correctly
Bumps verison and compat dependency.
---
NEWS.org | 3 +++
indent-bars-ts.el | 7 ++++---
indent-bars.el | 4 ++--
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/NEWS.org b/NEWS.org
index bb157b5277..1c2adb63a9 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -2,6 +2,9 @@
#+author: J.D. Smith
#+language: en
+* v0.8.4 (2025-05-08)
+- =BUGFIX= avoid ~args-out-of-range~ errors in TS modes.
+
* v0.8.3 (2025-04-09)
- Improve bar highlight logic when using ~indent-bars-starting-column=0~ (see
#100).
diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index bc7a9c32fd..b072672ddb 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -410,9 +410,10 @@ invalidated text."
(assq buffer orig)
(> jit-lock-context-unfontify-pos (alist-get buffer orig)))
(with-silent-modifications
- (put-text-property (alist-get buffer orig)
- jit-lock-context-unfontify-pos
- 'indent-bars-font-lock-pending t)))))))
+ (without-restriction
+ (put-text-property (alist-get buffer orig)
+ jit-lock-context-unfontify-pos
+ 'indent-bars-font-lock-pending t))))))))
(defun indent-bars-ts--font-lock-inhibit (beg end)
"Check if font-lock is needed on the region between BEG and END.
diff --git a/indent-bars.el b/indent-bars.el
index e71f73b1da..b9099b4ce3 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -3,8 +3,8 @@
;; Author: J.D. Smith <[email protected]>
;; Homepage: https://github.com/jdtsmith/indent-bars
-;; Package-Requires: ((emacs "27.1") (compat "29.1"))
-;; Version: 0.8.3
+;; Package-Requires: ((emacs "27.1") (compat "30"))
+;; Version: 0.8.4
;; Keywords: convenience
;; indent-bars is free software: you can redistribute it and/or