Skip to content

Commit

Permalink
Improve rename styling
Browse files Browse the repository at this point in the history
It should use the heading with colour, consistent with other modes,
and the header should come before rename information.
  • Loading branch information
Wilfred committed Aug 8, 2023
1 parent 1e97003 commit a187d7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Tweaked the colours on the file header, to make metadata less
prominent.

Improved styling of file rename information.

Improved syntax hightling for Java built-in types.

### Diffing
Expand Down
4 changes: 2 additions & 2 deletions src/display/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ pub fn header(

match old_path {
Some(old_path) => {
let renamed = format!("Renamed {} to {}", old_path, display_path);
format!("{}\n{}{}", renamed, display_path, trailer)
let renamed = format!("Renamed from {} to {}", old_path, display_path);
format!("{}{}\n{}", display_path_pretty, trailer, renamed)
}
None => {
format!("{}{}", display_path_pretty, trailer)
Expand Down

0 comments on commit a187d7a

Please sign in to comment.