aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/test.rs
diff options
context:
space:
mode:
authorIvan Tham2022-02-21 14:58:54 +0000
committerBlaž Hrastnik2022-04-02 15:46:53 +0000
commit8350ee9a0ef38ff4e78bfa5dc30e874d6d2510ef (patch)
tree01c1486aaa420a8d98046619cde79d53b92cdb19 /helix-core/src/test.rs
parente2a6e33b98ac6dd1d42be659706c7e0d248e8f5d (diff)
Add paragraph textobject
Change parameter/argument key from p to a since paragraph only have p but parameter are also called arguments sometimes and a is not used.
Diffstat (limited to 'helix-core/src/test.rs')
-rw-r--r--helix-core/src/test.rs3
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();