Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/commands/insert.rs')
-rw-r--r--helix-term/tests/test/commands/insert.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/helix-term/tests/test/commands/insert.rs b/helix-term/tests/test/commands/insert.rs
index 9352f737..a3da5fb2 100644
--- a/helix-term/tests/test/commands/insert.rs
+++ b/helix-term/tests/test/commands/insert.rs
@@ -1,6 +1,25 @@
use super::*;
#[tokio::test(flavor = "multi_thread")]
+async fn change_line_above_comment() -> anyhow::Result<()> {
+ // <https://github.com/helix-editor/helix/issues/12570>
+ test((
+ indoc! {"\
+ #[fn main() {}
+ |]#// a comment
+ "},
+ ":lang rust<ret>c",
+ indoc! {"\
+ #[
+ |]#// a comment
+ "},
+ ))
+ .await?;
+
+ Ok(())
+}
+
+#[tokio::test(flavor = "multi_thread")]
async fn insert_newline_many_selections() -> anyhow::Result<()> {
test((
indoc! {"\