Store nodes' public-facing positions, not pre-padding positions

This commit is contained in:
Max Brunsfeld 2018-05-22 08:50:04 -07:00
parent 8d57ce9cdf
commit 80630ce504
3 changed files with 20 additions and 26 deletions

View file

@ -25,7 +25,7 @@ void ts_tree_delete(TSTree *self) {
}
TSNode ts_tree_root_node(const TSTree *self) {
return ts_node_new(self, self->root, length_zero(), 0);
return ts_node_new(self, self->root, self->root->padding, 0);
}
void ts_tree_edit(TSTree *self, const TSInputEdit *edit) {