]> git.eshelyaron.com Git - emacs.git/commit
Fix treesit-update-ranges
authorYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 20:01:53 +0000 (12:01 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 20:38:20 +0000 (12:38 -0800)
commit057901f55ad12ebbc9cf092dd6ad0f02539849f9
tree3d537e52964672349faa5b9ca140ee5e9183f6f3
parent2fa6ccab01b80ee3fcc78fe35a0061cc11983e1c
Fix treesit-update-ranges

* lisp/treesit.el (treesit--clip-ranges): New function.
(treesit-update-ranges): Now clips the range within (point-min)
and (point-max), so the new range we use are not out-of-range.
lisp/treesit.el