branch: elpa/typst-ts-mode
commit b68f3595aa67b52df24094f30632c4a8c35cc73b
Author: Meow King <[email protected]>
Commit: Meow King <[email protected]>
chore
---
typst-ts-edit-indirect.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/typst-ts-edit-indirect.el b/typst-ts-edit-indirect.el
index 472dc00742..115a43b52d 100644
--- a/typst-ts-edit-indirect.el
+++ b/typst-ts-edit-indirect.el
@@ -110,7 +110,8 @@ If there is no fitting mode or no lang it will be
`normal-mode'."
(save-excursion
(goto-char beg)
(insert " "))
- (edit-indirect-region beg end t)
+ (when (fboundp 'edit-indirect-region) ; pass elisp's dumb linter
+ (edit-indirect-region beg end t))
;; delete the inserted space
(save-excursion
(goto-char (point-min))