Skip to content

Commit c101f37

Browse files
committed
style: fmt
1 parent 082ba4d commit c101f37

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

helix-term/src/ui/editor.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,19 @@ impl EditorView {
261261

262262
// do not render inline blame for empty lines to reduce visual noise
263263
if doc.text().line(cursor_line_idx) != doc.line_ending.as_str() {
264-
if let Ok(line_blame) = doc.line_blame(cursor_line_idx as u32, &inline_blame.format)
264+
if let Ok(line_blame) =
265+
doc.line_blame(cursor_line_idx as u32, &inline_blame.format)
265266
{
266267
decorations.add_decoration(InlineBlame::new(
267268
theme,
268-
text_decorations::blame::LineBlame::OneLine((cursor_line_idx, line_blame)),
269+
text_decorations::blame::LineBlame::OneLine((
270+
cursor_line_idx,
271+
line_blame,
272+
)),
269273
));
270274
};
271275
}
272-
},
276+
}
273277
InlineBlameBehaviour::AllLines => {
274278
let text = doc.text();
275279
let text_line_count = text.len_lines();
@@ -300,11 +304,12 @@ impl EditorView {
300304
for (line_idx, blame) in blame_for_all_lines {
301305
blame_lines[line_idx] = Some(blame);
302306
}
307+
303308
decorations.add_decoration(InlineBlame::new(
304309
theme,
305310
text_decorations::blame::LineBlame::ManyLines(blame_lines),
306311
));
307-
},
312+
}
308313
}
309314
}
310315

0 commit comments

Comments
 (0)