diff options
Diffstat (limited to 'helix-core/src/test.rs')
-rw-r--r-- | helix-core/src/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-core/src/test.rs b/helix-core/src/test.rs index 983c9a57..da4f8fac 100644 --- a/helix-core/src/test.rs +++ b/helix-core/src/test.rs @@ -97,8 +97,9 @@ pub fn plain(s: &str, selection: Selection) -> String { .enumerate() .flat_map(|(i, range)| { [ - (range.anchor, '^'), + // sort like this before reversed so anchor < head later (range.head, if i == primary { '@' } else { '|' }), + (range.anchor, '^'), ] }) .collect(); |