mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
Split on matches off by one, breaks tests again.
This commit is contained in:
parent
fd311fb8ad
commit
8c7bc71ede
@ -276,7 +276,7 @@ pub fn split_on_matches(
|
||||
// TODO: retain range direction
|
||||
|
||||
let end = text.byte_to_char(start_byte + mat.start());
|
||||
result.push(Range::new(start, end));
|
||||
result.push(Range::new(start, end - 1));
|
||||
start = text.byte_to_char(start_byte + mat.end());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user