Fix infinite loop in select all matches
This commit is contained in:
parent
c074bfd441
commit
03d4191685
3 changed files with 28 additions and 7 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue