diff --git a/src/printer.rs b/src/printer.rs index a53b89b7..8da7af93 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -222,7 +222,7 @@ impl<'a> InteractivePrinter<'a> { impl<'a> Printer for InteractivePrinter<'a> { fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> { if !self.config.output_components.header() { - if Some(ContentType::BINARY) == self.content_type { + if Some(ContentType::BINARY) == self.content_type && !self.config.show_nonprintable { let input = match file { InputFile::Ordinary(filename) => format!("file '{}'", filename), _ => "STDIN".into(),