aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/treesit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c
index eb323e6360c..625a7932ae9 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -1053,7 +1053,7 @@ If NODE is nil, return nil. */)
1053 ts_check_node (node); 1053 ts_check_node (node);
1054 TSNode ts_node = XTS_NODE (node)->node; 1054 TSNode ts_node = XTS_NODE (node)->node;
1055 char *string = ts_node_string (ts_node); 1055 char *string = ts_node_string (ts_node);
1056 return make_string (string, strlen (string)); 1056 return build_string (string);
1057} 1057}
1058 1058
1059DEFUN ("treesit-node-parent", 1059DEFUN ("treesit-node-parent",
@@ -1163,7 +1163,7 @@ If NODE is nil, return nil. */)
1163 if (name == NULL) 1163 if (name == NULL)
1164 return Qnil; 1164 return Qnil;
1165 1165
1166 return make_string (name, strlen (name)); 1166 return build_string (name);
1167} 1167}
1168 1168
1169DEFUN ("treesit-node-child-count", 1169DEFUN ("treesit-node-child-count",