1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-30 18:11:44 +00:00

Return theme alongside detected color scheme

This commit is contained in:
Tau Gärtli
2024-08-23 18:03:07 +02:00
parent 89ce060183
commit 50958472e5
2 changed files with 61 additions and 33 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ impl App {
Some("auto") => StripAnsiMode::Auto,
_ => unreachable!("other values for --strip-ansi are not allowed"),
},
theme: theme(self.theme_options()),
theme: theme(self.theme_options()).to_string(),
visible_lines: match self.matches.try_contains_id("diff").unwrap_or_default()
&& self.matches.get_flag("diff")
{