mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-25 09:13:39 +01:00
Don't output default theme info to piped stdout
This commit is contained in:
parent
b662fec214
commit
0603f0b844
@ -202,7 +202,7 @@ pub fn list_themes(cfg: &Config, config_dir: &Path, cache_dir: &Path) -> Result<
|
||||
|
||||
let default_theme = HighlightingAssets::default_theme();
|
||||
for theme in assets.themes() {
|
||||
let default_theme_info = if default_theme == theme {
|
||||
let default_theme_info = if !config.loop_through && default_theme == theme {
|
||||
" (default)"
|
||||
} else {
|
||||
""
|
||||
|
Loading…
Reference in New Issue
Block a user