Add padding_point.row to ts_node_start_point's row.
This commit is contained in:
parent
94a46d9ae1
commit
3f9c8b76de
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ TSPoint ts_node_size_point(TSNode self) {
|
|||
}
|
||||
|
||||
TSPoint ts_node_start_point(TSNode self) {
|
||||
return ts_point_make(self.row, ts_tree_offset_column(ts_node__tree(self)));
|
||||
TSTree *tree = ts_node__tree(self);
|
||||
return ts_point_make(self.row + tree->padding_point.row, ts_tree_offset_column(tree));
|
||||
}
|
||||
|
||||
TSPoint ts_node_end_point(TSNode self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue