Cleanup
This commit is contained in:
parent
f4a30aec7b
commit
595cbaf44e
1 changed files with 1 additions and 1 deletions
|
@ -1457,7 +1457,7 @@ fn find_text_in_buffer(
|
||||||
}
|
}
|
||||||
|
|
||||||
if char_offset == chars.len() {
|
if char_offset == chars.len() {
|
||||||
Some(offset - chars.len()..offset)
|
Some(offset.saturating_sub(chars.len())..offset)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue