From af3b670de6c92475a07390b0d4d1a38fdb2274f4 Mon Sep 17 00:00:00 2001 From: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Tue, 25 Mar 2025 21:35:45 +0000 Subject: [PATCH] refactor: move expression _ --- helix-term/src/ui/editor.rs | 3 +-- helix-term/src/ui/text_decorations/blame.rs | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 32a2a8a0f..e23ccb3f5 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -179,6 +179,7 @@ impl EditorView { } Self::render_rulers(editor, doc, view, inner, surface, theme); + Self::render_inline_blame(&config.inline_blame, doc, view, &mut decorations, theme); let primary_cursor = doc .selection(view.id) @@ -204,8 +205,6 @@ impl EditorView { config.end_of_line_diagnostics, )); - Self::render_inline_blame(&config.inline_blame, doc, view, &mut decorations, theme); - render_document( surface, inner, diff --git a/helix-term/src/ui/text_decorations/blame.rs b/helix-term/src/ui/text_decorations/blame.rs index 372666597..645a0462c 100644 --- a/helix-term/src/ui/text_decorations/blame.rs +++ b/helix-term/src/ui/text_decorations/blame.rs @@ -20,10 +20,7 @@ pub struct InlineBlame { impl InlineBlame { pub fn new(style: Style, lines: LineBlame) -> Self { - InlineBlame { - style, - lines, - } + InlineBlame { style, lines } } }