From 592c5b0af22cc719fc1513f71706dad326ba8081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 29 Sep 2020 18:13:19 +0900 Subject: [PATCH] Fix test, break split + append --- helix-core/src/selection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }