From 76b3e6778d6bba96f17ca797cb93313c7ac37bb8 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Sun, 2 Feb 2025 03:49:39 +0000 Subject: [PATCH] chore: remove log statement --- helix-core/src/comment.rs | 1 - helix-term/tests/test/commands.rs | 20 ++++++++++---------- lol.html | 7 ++++++- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs index 1506d563a..5a458ac2d 100644 --- a/helix-core/src/comment.rs +++ b/helix-core/src/comment.rs @@ -46,7 +46,6 @@ fn find_line_comment( let token_len = token.chars().count(); for line in lines { - log::error!("{line}"); let line_slice = text.line(line); if let Some(pos) = line_slice.first_non_whitespace_char() { let len = line_slice.len_chars(); diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs index 716452912..acaf4b714 100644 --- a/helix-term/tests/test/commands.rs +++ b/helix-term/tests/test/commands.rs @@ -661,7 +661,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> { indoc! {r#"\

Comment toggle on this line should use the HTML comment token(s).

"#}, @@ -669,7 +669,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> { indoc! {r#"\

Comment toggle on this line should use the HTML comment token(s).

"#}, @@ -701,7 +701,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> { indoc! {r#"\

Comment toggle on this line should use the HTML comment token(s).

"#}, @@ -709,7 +709,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> { indoc! {r#"\

Comment toggle on this line should use the HTML comment token(s).

"#}, @@ -721,7 +721,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> { indoc! {r#"\

Comment toggle on this line should use the HTML comment token(s).

"#}, @@ -729,7 +729,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> { indoc! {r#"\

Comment toggle on this line should use the HTML comment token(s).

"#}, @@ -835,17 +835,17 @@ async fn test_injected_comment_tokens_multiple_selections() -> anyhow::Result<() // Works with block comment toggle across different layers test(( indoc! {r#"\ -

Comment toggle #(|on this line )#should use the HTML comment token(s).

+

Comment toggle #(|on this line)# should use the HTML comment token(s).

"#}, ":lang html C", indoc! {r#"\ -

C-c #(|)# should use the HTML comment token(s).

+

Comment toggle #(|)# should use the HTML comment token(s).

"#}, diff --git a/lol.html b/lol.html index 13c4f9335..7a20664e4 100644 --- a/lol.html +++ b/lol.html @@ -1,5 +1,10 @@ -

Comment toggle on this line should use the HTML comment token(s).

+