Fix a bug that prevented early termination of query matches

This commit is contained in:
Max Brunsfeld 2019-09-18 15:28:46 -07:00
parent d9b8bae629
commit a6b6a681ec
3 changed files with 106 additions and 33 deletions

View file

@ -272,7 +272,7 @@ TSFieldId ts_tree_cursor_current_status(
}
}
if (ts_subtree_child_count(*parent_entry->subtree) > entry->child_index) {
if (ts_subtree_child_count(*parent_entry->subtree) > entry->child_index + 1) {
*can_have_later_siblings = true;
}