Skip to content

Commit

Permalink
Dim the extra information section in hunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Aug 16, 2023
1 parent e1f97e6 commit a43b9ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/display/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
_ => {
Expand Down

0 comments on commit a43b9ae

Please sign in to comment.