From c101f372988e91756959c75960294a2340a4acef Mon Sep 17 00:00:00 2001 From: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Tue, 25 Mar 2025 21:31:08 +0000 Subject: [PATCH] style: fmt --- helix-term/src/ui/editor.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 585107e15..16f7d0635 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -261,15 +261,19 @@ impl EditorView { // do not render inline blame for empty lines to reduce visual noise if doc.text().line(cursor_line_idx) != doc.line_ending.as_str() { - if let Ok(line_blame) = doc.line_blame(cursor_line_idx as u32, &inline_blame.format) + if let Ok(line_blame) = + doc.line_blame(cursor_line_idx as u32, &inline_blame.format) { decorations.add_decoration(InlineBlame::new( theme, - text_decorations::blame::LineBlame::OneLine((cursor_line_idx, line_blame)), + text_decorations::blame::LineBlame::OneLine(( + cursor_line_idx, + line_blame, + )), )); }; } - }, + } InlineBlameBehaviour::AllLines => { let text = doc.text(); let text_line_count = text.len_lines(); @@ -300,11 +304,12 @@ impl EditorView { for (line_idx, blame) in blame_for_all_lines { blame_lines[line_idx] = Some(blame); } + decorations.add_decoration(InlineBlame::new( theme, text_decorations::blame::LineBlame::ManyLines(blame_lines), )); - }, + } } }