on master help sign in
Fix test, break split + append
commit592c5b0af22cc719fc1513f71706dad326ba8081 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 29 Sep 2020, 18:13 (6 years ago) parent3feb002
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 - 1));
279+ result.push(Range::new(start, end));
280280 start = text.byte_to_char(start_byte + mat.end());
281281 }
282282