1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-29 18:01:43 +00:00

Always show a warning when theme is unknown

This commit is contained in:
sharkdp
2018-07-23 21:38:45 +02:00
committed by David Peter
parent c899849101
commit 28397b8f78
3 changed files with 17 additions and 27 deletions
+1 -4
View File
@@ -57,10 +57,7 @@ pub fn list_languages(assets: &HighlightingAssets, term_width: usize) {
}
pub fn print_files(assets: &HighlightingAssets, config: &Config) -> Result<bool> {
let theme = assets.get_theme(match config.theme {
Some(ref theme_name) => theme_name,
None => "Default",
})?;
let theme = assets.get_theme(&config.theme);
let mut output_type = OutputType::from_mode(config.paging_mode);
let handle = output_type.handle()?;