Fix treesit--children-covering-range-recurse (bug#60301)
* lisp/treesit.el (treesit--children-covering-range-recurse): Always return a list of node.
This commit is contained in:
parent
fbb4eb919b
commit
a24e350170
1 changed files with 1 additions and 1 deletions
|
@ -865,7 +865,7 @@ LIMIT is the recursion limit, which defaults to 100."
|
||||||
(push child result))
|
(push child result))
|
||||||
(setq child (treesit-node-next-sibling child)))
|
(setq child (treesit-node-next-sibling child)))
|
||||||
;; If NODE has no child, keep NODE.
|
;; If NODE has no child, keep NODE.
|
||||||
(or result node)))
|
(or result (list node))))
|
||||||
|
|
||||||
(defsubst treesit--node-length (node)
|
(defsubst treesit--node-length (node)
|
||||||
"Return the length of the text of NODE."
|
"Return the length of the text of NODE."
|
||||||
|
|
Loading…
Add table
Reference in a new issue