diff --git a/helix-term/tests/test/movement.rs b/helix-term/tests/test/movement.rs index 77098a336..48b2ae1b9 100644 --- a/helix-term/tests/test/movement.rs +++ b/helix-term/tests/test/movement.rs @@ -65,6 +65,31 @@ async fn insert_to_normal_mode_cursor_position() -> anyhow::Result<()> { Ok(()) } +#[tokio::test(flavor = "multi_thread")] +async fn register_mark() -> anyhow::Result<()> { + // add a mark and then immediately paste it out + test(( + indoc! {"\ + Lorem + ipsum + dolor#[| + sit]# + amet." + }, + "1\"^p", + indoc! {"\ + Lorem + ipsum + dolor + sit#[|1:(24,19)]# + amet." + }, + )) + .await?; + + Ok(()) +} + #[tokio::test(flavor = "multi_thread")] async fn surround_by_character() -> anyhow::Result<()> { // Only pairs matching the passed character count