Don't output default theme info to piped stdout

This commit is contained in:
einfachIrgendwer0815 2024-08-25 10:54:46 +02:00
parent b662fec214
commit 0603f0b844
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873

View File

@ -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 {
""