Fix regression with --list-themes and --language
commit589c94aa934ca66743971a37d4909d321e7571a7
authorEthan P <eth-p+git@hidden.email>
dateSat 16 May 2020, 15:07 (6 years ago)
parent798b742
src/bin/bat/main.rs+1
@@ -130,6 +130,7 @@ pub fn list_themes(cfg: &Config) -> Result<()> {
130130 let mut config = cfg.clone();
131131 let mut style = HashSet::new();
132132 style.insert(StyleComponent::Plain);
133+ config.language = Some("Rust");
133134 config.style_components = StyleComponents(style);
134135
135136 let stdout = io::stdout();