Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/commands.rs')
-rw-r--r--helix-term/tests/test/commands.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs
index 9e87cead..97653c7e 100644
--- a/helix-term/tests/test/commands.rs
+++ b/helix-term/tests/test/commands.rs
@@ -868,3 +868,25 @@ async fn global_search_with_multibyte_chars() -> anyhow::Result<()> {
Ok(())
}
+
+#[tokio::test(flavor = "multi_thread")]
+async fn align_selections_with_varying_columns() -> anyhow::Result<()> {
+ test((
+ indoc! {r"
+ #[|]#I I II I
+ IIIIIIIII
+ IIIII
+ IIIIIIIII
+ "},
+ r"%sI<ret>&gg",
+ indoc! {r"
+ #[I|]# I II I
+ I I II IIIII
+ I I II I
+ I I II IIIII
+ "},
+ ))
+ .await?;
+
+ Ok(())
+}