mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-27 00:38:52 +01:00
Fix #798
This commit is contained in:
parent
d1bb47d741
commit
1225e65299
@ -79,7 +79,10 @@ impl<'b> Controller<'b> {
|
||||
writer: &mut dyn Write,
|
||||
input_file: InputFile<'a>,
|
||||
) -> Result<()> {
|
||||
printer.print_header(writer, input_file)?;
|
||||
if !reader.first_line.is_empty() || self.config.output_components.header() {
|
||||
printer.print_header(writer, input_file)?;
|
||||
}
|
||||
|
||||
if !reader.first_line.is_empty() {
|
||||
self.print_file_ranges(printer, writer, reader, &self.config.line_ranges)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user