on master help sign in
Fix #798
commit1225e65299ceee6f6eda0d144f38c309cab59be3 authorEthan P <eth-p+git@hidden.email> dateWed 26 Feb 2020, 11:53 (7 years ago) parentd1bb47d
1 file changed+4−1
src/controller.rs+4−1
src/controller.rs+4−1
@@ -79,7 +79,10 @@ impl<'b> Controller<'b> {
7979 writer: &mut dyn Write,
8080 input_file: InputFile<'a>,
8181 ) -> Result<()> {
82− printer.print_header(writer, input_file)?;
82+ if !reader.first_line.is_empty() || self.config.output_components.header() {
83+ printer.print_header(writer, input_file)?;
84+ }
85+
8386 if !reader.first_line.is_empty() {
8487 self.print_file_ranges(printer, writer, reader, &self.config.line_ranges)?;
8588 }