mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-13 22:28:23 +01:00
Suppress warning in -A mode
This commit is contained in:
parent
82ca8804a2
commit
9814eab13f
@ -222,7 +222,7 @@ impl<'a> InteractivePrinter<'a> {
|
|||||||
impl<'a> Printer for InteractivePrinter<'a> {
|
impl<'a> Printer for InteractivePrinter<'a> {
|
||||||
fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> {
|
fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> {
|
||||||
if !self.config.output_components.header() {
|
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 {
|
let input = match file {
|
||||||
InputFile::Ordinary(filename) => format!("file '{}'", filename),
|
InputFile::Ordinary(filename) => format!("file '{}'", filename),
|
||||||
_ => "STDIN".into(),
|
_ => "STDIN".into(),
|
||||||
|
Loading…
Reference in New Issue
Block a user