Print a newline on binary files, consistent with other files

a_star_module
Wilfred Hughes 2022-01-03 23:56:34 +07:00
parent 654a49bc0c
commit c7c6f1a7b6
2 changed files with 3 additions and 1 deletions

@ -17,6 +17,8 @@ Improved highlighting heuristics for added/removed blank lines.
Fixed an alignment bug where the last line being novel would lead to
poor alignment of unchanged lines.
Fixed minor formatting issues when reporting that a file is binary.
## 0.14 (released 27 December 2021)
### Parsing

@ -333,7 +333,7 @@ fn diff_directories(lhs_dir: &Path, rhs_dir: &Path) -> Vec<DiffResult> {
fn print_diff_result(summary: &DiffResult) {
if summary.binary {
print!("{}", style::header(&summary.path, 1, 1, "binary"));
println!("{}", style::header(&summary.path, 1, 1, "binary"));
return;
}