Fix infinite loop in select all matches

This commit is contained in:
Mikayla 2023-09-20 08:00:55 -07:00
parent c074bfd441
commit 03d4191685
No known key found for this signature in database
3 changed files with 28 additions and 7 deletions

View file

@ -100,6 +100,10 @@ impl Selection<usize> {
reversed: false,
}
}
pub fn equals(&self, offset_range: &Range<usize>) -> bool {
self.start == offset_range.start && self.end == offset_range.end
}
}
impl Selection<Anchor> {