Skip to content

Commit af3b670

Browse files
committed
refactor: move expression
_
1 parent b3b1c88 commit af3b670

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

helix-term/src/ui/editor.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ impl EditorView {
179179
}
180180

181181
Self::render_rulers(editor, doc, view, inner, surface, theme);
182+
Self::render_inline_blame(&config.inline_blame, doc, view, &mut decorations, theme);
182183

183184
let primary_cursor = doc
184185
.selection(view.id)
@@ -204,8 +205,6 @@ impl EditorView {
204205
config.end_of_line_diagnostics,
205206
));
206207

207-
Self::render_inline_blame(&config.inline_blame, doc, view, &mut decorations, theme);
208-
209208
render_document(
210209
surface,
211210
inner,

helix-term/src/ui/text_decorations/blame.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ pub struct InlineBlame {
2020

2121
impl InlineBlame {
2222
pub fn new(style: Style, lines: LineBlame) -> Self {
23-
InlineBlame {
24-
style,
25-
lines,
26-
}
23+
InlineBlame { style, lines }
2724
}
2825
}
2926

0 commit comments

Comments
 (0)