Dim the extra information section in hunks

syntax_id
Wilfred Hughes 2023-08-15 21:33:11 +07:00
parent e1f97e614f
commit a43b9ae9eb
1 changed files with 5 additions and 0 deletions

@ -477,6 +477,11 @@ pub fn header(
match extra_info {
Some(extra_info) if hunk_num == 1 => {
let mut extra_info = extra_info.clone();
if display_options.use_color {
extra_info = extra_info.dimmed().to_string();
}
format!("{}{}\n{}", display_path_pretty, trailer, extra_info)
}
_ => {