mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-18 02:30:55 +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();
|
let default_theme = HighlightingAssets::default_theme();
|
||||||
for theme in assets.themes() {
|
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)"
|
" (default)"
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
|
Loading…
Reference in New Issue
Block a user