]> git.eshelyaron.com Git - emacs.git/commit
Fix treesit-induce-sparse-tree
authorYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 03:52:32 +0000 (20:52 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 04:11:31 +0000 (21:11 -0700)
commit9e339415b4c068242e7cd785d2ac95420f1934ba
tree049810a863289df91002b2736053370dd809c066
parentef6e18a6b9ab103f3f076b35100d09cff1687396
Fix treesit-induce-sparse-tree

Because not-at-all-werid way we implemented ts_build_sparse_tree, it’s
return value needs a bit post-processing (i.e., reverse its cdr).

* src/treesit.c (Ftreesit_induce_sparse_tree): Reverse the top-level
children list.
(ts_build_sparse_tree): Add comment.
src/treesit.c