[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 1a677d1429d: treesit--pre-syntax-ppss: Fix args-out-of-range in
From: |
Dmitry Gutov |
Subject: |
emacs-29 1a677d1429d: treesit--pre-syntax-ppss: Fix args-out-of-range in internal--syntax-propertize |
Date: |
Tue, 2 Jan 2024 08:32:15 -0500 (EST) |
branch: emacs-29
commit 1a677d1429d1f9fea2d6b2bc9dd5644a5564cc27
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
treesit--pre-syntax-ppss: Fix args-out-of-range in
internal--syntax-propertize
* lisp/treesit.el (treesit--pre-syntax-ppss): Make sure the lower
bound is still within the current restriction (bug#67977).
---
lisp/treesit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index b656040958d..c63bf510a24 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1150,7 +1150,7 @@ START and END mark the current to-be-propertized region."
(if (and new-start (< new-start start))
(progn
(setq treesit--syntax-propertize-start nil)
- (cons new-start end))
+ (cons (max new-start (point-min)) end))
nil)))
;;; Indent
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 1a677d1429d: treesit--pre-syntax-ppss: Fix args-out-of-range in internal--syntax-propertize,
Dmitry Gutov <=