Skip to content

Commit

Permalink
Add test case for multiple cursors resulting in overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
EpocSquadron committed Oct 10, 2022
1 parent d780365 commit 812dffd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions helix-term/tests/test/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ async fn surround_inside_pair() -> anyhow::Result<()> {
))
.await?;

// Works with multiple cursors
test((
"(so (many (good) text) #[he|]#re\nso (many (good) text) #(|he)#re)",
"mim",
"(#[so (many (good) text) here\nso (many (good) text) here|]#)",
))
.await?;

Ok(())
}

Expand Down Expand Up @@ -346,6 +354,14 @@ async fn surround_around_pair() -> anyhow::Result<()> {
))
.await?;

// Works with multiple cursors
test((
"(so (many (good) text) #[he|]#re\nso (many (good) text) #(|he)#re)",
"mam",
"#[(so (many (good) text) here\nso (many (good) text) here)|]#",
))
.await?;

Ok(())
}

Expand Down

0 comments on commit 812dffd

Please sign in to comment.