This commit is contained in:
Bennet Bo Fenner 2025-08-26 13:01:40 +02:00
parent f4a30aec7b
commit 595cbaf44e

View file

@ -1457,7 +1457,7 @@ fn find_text_in_buffer(
}
if char_offset == chars.len() {
Some(offset - chars.len()..offset)
Some(offset.saturating_sub(chars.len())..offset)
} else {
None
}