Merge pull request #27590 from bfredl/signcolfix

fix(marktree): do not count certain marks twice when checking for overlap
This commit is contained in:
bfredl
2024-02-23 13:37:11 +01:00
committed by GitHub
2 changed files with 25 additions and 1 deletions

View File

@@ -1831,7 +1831,7 @@ bool marktree_itr_step_overlap(MarkTree *b, MarkTreeIter *itr, MTPair *pair)
}
unrelative(itr->pos, &k.pos);
MTKey start = marktree_lookup(b, id, NULL);
if (pos_less(itr->intersect_pos, start.pos)) {
if (pos_leq(itr->intersect_pos, start.pos)) {
continue;
}
*pair = mtpair_from(start, k);