aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-29 09:13:19 +0000
committerBlaž Hrastnik2020-09-29 09:13:19 +0000
commit592c5b0af22cc719fc1513f71706dad326ba8081 (patch)
tree56472d52df9c2582067a4f89112ce54791ecd3e3 /helix-core
parent3feb00283df92b8865c9cf7baba0e2ab06dcc028 (diff)
Fix test, break split + append
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/selection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs
index 2251c77f..41dffa03 100644
--- a/helix-core/src/selection.rs
+++ b/helix-core/src/selection.rs
@@ -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 - 1));
+ result.push(Range::new(start, end));
start = text.byte_to_char(start_byte + mat.end());
}