diff options
author | Blaž Hrastnik | 2020-10-14 00:38:52 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-14 00:38:52 +0000 |
commit | 94f9603c7490bf1616ecc44af99063f044b4d2a4 (patch) | |
tree | 0c8a43d0e890e090de4432007678987d903a0aaa /helix-core/src/selection.rs | |
parent | 989080afedc6632ca9d994b40e12a46dafcea405 (diff) |
Fix compose not merging certain changesets correctly.
Diffstat (limited to 'helix-core/src/selection.rs')
-rw-r--r-- | helix-core/src/selection.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index d3806cf3..13c820f1 100644 --- a/helix-core/src/selection.rs +++ b/helix-core/src/selection.rs @@ -371,17 +371,17 @@ mod test { assert_eq!( result.ranges(), &[ - Range::new(0, 4), - Range::new(5, 8), - Range::new(10, 12), - Range::new(15, 18), + Range::new(0, 3), + Range::new(5, 7), + Range::new(10, 11), + Range::new(15, 17), Range::new(19, 19), ] ); assert_eq!( result.fragments(&text.slice(..)).collect::<Vec<_>>(), - &["abcd", "efg", "rs", "xyz", ""] + &["abcd", "efg", "rs", "xyz", "1"] ); } } |