1
0
mirror of https://github.com/sharkdp/bat.git synced 2026-02-08 00:32:08 +00:00

feat: wire up quiet_empty config in app

This commit is contained in:
dddffgg
2026-01-31 16:41:46 +08:00
parent 53a10e0b0a
commit 6f0a61cef9

View File

@@ -461,6 +461,7 @@ impl App {
Some("auto") => StripAnsiMode::Auto, Some("auto") => StripAnsiMode::Auto,
_ => unreachable!("other values for --strip-ansi are not allowed"), _ => unreachable!("other values for --strip-ansi are not allowed"),
}, },
quiet_empty: self.matches.get_flag("quiet-empty"),
theme: theme(self.theme_options()).to_string(), theme: theme(self.theme_options()).to_string(),
visible_lines: match self.matches.try_contains_id("diff").unwrap_or_default() visible_lines: match self.matches.try_contains_id("diff").unwrap_or_default()
&& self.matches.get_flag("diff") && self.matches.get_flag("diff")