mirror of
https://github.com/helix-editor/helix
synced 2024-06-03 08:26:10 +02:00
Fix test, break split + append
This commit is contained in:
parent
3feb00283d
commit
592c5b0af2
|
@ -276,7 +276,7 @@ pub fn split_on_matches(
|
||||||
// TODO: retain range direction
|
// TODO: retain range direction
|
||||||
|
|
||||||
let end = text.byte_to_char(start_byte + mat.start());
|
let end = text.byte_to_char(start_byte + mat.start());
|
||||||
result.push(Range::new(start, end - 1));
|
result.push(Range::new(start, end));
|
||||||
start = text.byte_to_char(start_byte + mat.end());
|
start = text.byte_to_char(start_byte + mat.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue