Improve rename styling

It should use the heading with colour, consistent with other modes,
and the header should come before rename information.
syntax_id
Wilfred Hughes 2023-08-08 08:53:33 +07:00
parent 1e97003da9
commit a187d7a134
2 changed files with 4 additions and 2 deletions

@ -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

@ -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)