Skip to content

Commit

Permalink
Fix off-by-one bug with rcapture().
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-niestadt committed Jun 21, 2024
1 parent 059d9e3 commit 1284a91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected FilterSpans.AcceptStatus accept(BLSpans candidate) throws IOException
if (relations.startPosition() < start)
relations.advanceStartPosition(start);
while (relations.startPosition() < end) {
if (relations.endPosition() < end)
if (relations.endPosition() <= end)
capturedRelations.add(relations.getRelationInfo().copy());
relations.nextStartPosition();
}
Expand Down

0 comments on commit 1284a91

Please sign in to comment.