diff options
| -rw-r--r-- | text-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-util.c b/text-util.c index f3ba0a0..f198d81 100644 --- a/text-util.c +++ b/text-util.c @@ -43,7 +43,7 @@ bool text_range_equal(const Filerange *r1, const Filerange *r2) { bool text_range_overlap(const Filerange *r1, const Filerange *r2) { if (!text_range_valid(r1) || !text_range_valid(r2)) return false; - return r1->start <= r2->end && r2->start <= r1->end; + return r1->start < r2->end && r2->start < r1->end; } bool text_range_contains(const Filerange *r, size_t pos) { |
