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:
+1
-4
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user