diff --git a/src/commands.rs b/src/commands.rs index 4c2d1cb0e..f93b49886 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -697,7 +697,7 @@ fn print_diff(left: &[u8], right: &[u8], styler: &mut dyn Styler) { } } } else { - if context_before { + if context_before || context.len() < num_context_lines { for line in &context { print_diff_line(styler, line); }