This commit is contained in:
Ethan P 2020-02-26 11:53:58 -08:00 committed by David Peter
parent d1bb47d741
commit 1225e65299

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)?;
}