on master help sign in
Suppress warning in -A mode
commit9814eab13f8c5269e0ea6a689a0d8bda1c1c5db5 authorsharkdp <davidpeter@web.de> dateSat 31 Aug 2019, 19:35 (7 years ago) parent82ca880
1 file changed+1−1
src/printer.rs+1−1
src/printer.rs+1−1
@@ -222,7 +222,7 @@ impl<'a> InteractivePrinter<'a> {
222222impl<'a> Printer for InteractivePrinter<'a> {
223223 fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> {
224224 if !self.config.output_components.header() {
225− if Some(ContentType::BINARY) == self.content_type {
225+ if Some(ContentType::BINARY) == self.content_type && !self.config.show_nonprintable {
226226 let input = match file {
227227 InputFile::Ordinary(filename) => format!("file '{}'", filename),
228228 _ => "STDIN".into(),