diff options
author | Dmitry Gutov <dmitry@gutov.dev> | 2024-01-02 15:32:03 +0200 |
---|---|---|
committer | Dmitry Gutov <dmitry@gutov.dev> | 2024-01-02 15:32:03 +0200 |
commit | 1a677d1429d1f9fea2d6b2bc9dd5644a5564cc27 (patch) | |
tree | 4915c63223ece353a80870c94a503659a6d9c42e /lisp | |
parent | dc4e6b1329614918791bef1704009c139b929845 (diff) | |
download | emacs-1a677d1429d1f9fea2d6b2bc9dd5644a5564cc27.tar.gz emacs-1a677d1429d1f9fea2d6b2bc9dd5644a5564cc27.tar.bz2 emacs-1a677d1429d1f9fea2d6b2bc9dd5644a5564cc27.zip |
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).
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/treesit.el | 2 |
1 files changed, 1 insertions, 1 deletions
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 |