on master help sign in
Split on matches off by one, breaks tests again.
commit8c7bc71ede213522efbcbb1b0fe91c0d47d2b47d authorBlaž Hrastnik <blaz@mxxn.io> dateSun 4 Oct 2020, 17:42 (6 years ago) parentfd311fb
1 file changed+1−1
helix-core/src/selection.rs+1−1
helix-core/src/selection.rs+1−1
@@ -276,7 +276,7 @@ pub fn split_on_matches(
276276 // TODO: retain range direction
277277
278278 let end = text.byte_to_char(start_byte + mat.start());
279− result.push(Range::new(start, end));
279+ result.push(Range::new(start, end - 1));
280280 start = text.byte_to_char(start_byte + mat.end());
281281 }
282282