summaryrefslogtreecommitdiffstats
path: root/src/options/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/options/theme.rs')
-rw-r--r--src/options/theme.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/options/theme.rs b/src/options/theme.rs
index 642699c2..2d853ada 100644
--- a/src/options/theme.rs
+++ b/src/options/theme.rs
@@ -10,14 +10,13 @@ use bat;
use bat::assets::HighlightingAssets;
use crate::cli;
-use crate::env;
#[allow(non_snake_case)]
pub fn set__is_light_mode__syntax_theme__syntax_set(
opt: &mut cli::Opt,
assets: HighlightingAssets,
) {
- let syntax_theme_name_from_bat_theme = env::get_env_var("BAT_THEME");
+ let syntax_theme_name_from_bat_theme = &opt.env.bat_theme;
let (is_light_mode, syntax_theme_name) = get_is_light_mode_and_syntax_theme_name(
opt.syntax_theme.as_ref(),
syntax_theme_name_from_bat_theme.as_ref(),