We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--binary=as-text
1 parent a769a3d commit 0c3b22eCopy full SHA for 0c3b22e
1 file changed
src/printer.rs
@@ -269,7 +269,8 @@ impl<'a> InteractivePrinter<'a> {
269
.content_type
270
.map_or(false, |c| c.is_binary() && !config.show_nonprintable);
271
272
- let needs_to_match_syntax = !is_printing_binary
+ let needs_to_match_syntax = (!is_printing_binary
273
+ || matches!(config.binary, BinaryBehavior::AsText))
274
&& (config.colored_output || config.strip_ansi == StripAnsiMode::Auto);
275
276
let (is_plain_text, highlighter_from_set) = if needs_to_match_syntax {
0 commit comments