This commit is contained in:
Ethan P authored and David Peter committed 2020-02-28 07:56:24 +01:00
1 parent d1bb47d741
commit 1225e65299
1 file changed
+4 -1
+4 -1
View File
@@ -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)?;
}