aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuan Fu2023-01-16 20:32:15 -0800
committerYuan Fu2023-01-17 00:58:36 -0800
commitb36cc7e7bbb5a8d0c1b298b89a4cb562af746ecc (patch)
tree2ebb2c4d7302a37bba33d188cca583e9461ede3e /src
parente8c77d9abda9c5c48de546a4ff667ffdf3d27c94 (diff)
downloademacs-b36cc7e7bbb5a8d0c1b298b89a4cb562af746ecc.tar.gz
emacs-b36cc7e7bbb5a8d0c1b298b89a4cb562af746ecc.zip
; * src/treesit.c (Ftreesit_induce_sparse_tree): Minor change.
Diffstat (limited to 'src')
-rw-r--r--src/treesit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/treesit.c b/src/treesit.c
index 3886fed346e..adbed1427be 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -3270,9 +3270,9 @@ a regexp. */)
3270 3270
3271 Lisp_Object parser = XTS_NODE (root)->parser; 3271 Lisp_Object parser = XTS_NODE (root)->parser;
3272 Lisp_Object parent = Fcons (Qnil, Qnil); 3272 Lisp_Object parent = Fcons (Qnil, Qnil);
3273 TSTreeCursor cursor; 3273 /* In this function we never traverse above NODE, so we don't need
3274 if (!treesit_cursor_helper (&cursor, XTS_NODE (root)->node, parser)) 3274 to use treesit_cursor_helper. */
3275 return Qnil; 3275 TSTreeCursor cursor = ts_tree_cursor_new (XTS_NODE (root)->node);
3276 3276
3277 treesit_build_sparse_tree (&cursor, parent, predicate, process_fn, 3277 treesit_build_sparse_tree (&cursor, parent, predicate, process_fn,
3278 the_limit, parser); 3278 the_limit, parser);