Fix tree-sitter variable name

* lisp/treesit.el:
(treesit-languages-require-line-column-tracking): This is what
treesit.c uses.
* src/treesit.c: Fix comment typo.
This commit is contained in:
Yuan Fu 2026-04-18 22:31:58 -07:00
parent b0034dffcc
commit 6894b65440
No known key found for this signature in database
GPG key ID: 56E19BC57664A442
2 changed files with 2 additions and 2 deletions

View file

@ -1264,7 +1264,7 @@ omitted, default END to BEG."
;;; Language
;; Defined in treesit.c. This is just to add some default values.
(defvar treesit-languages-need-line-column-tracking
(defvar treesit-languages-require-line-column-tracking
'(haskell))
;; The entries are sorted by `sort-lines'.

View file

@ -1527,7 +1527,7 @@ treesit_linecol_maybe (ptrdiff_t pos, ptrdiff_t pos_byte,
does not parse the buffer and only updates the tree, so it should be
very fast.
This is a wrapper over treesit_record_change that does a bit more
This is a wrapper over treesit_record_change_1 that does a bit more
boilerplate work: it (optionally) calculates linecol for new_end,
pass all the positions into treesit_record_change_1 which does the
real work, and finally (optionally) sets buffer's linecol cache to