let lscolors apply default colors if LS_COLORS not defined

This commit is contained in:
Abin Simon 2019-08-07 12:32:10 +05:30 committed by Pierre Peltier
parent 896a7f7729
commit 510f91e801

View file

@ -77,7 +77,7 @@ impl Colors {
};
let lscolors = match theme {
Theme::NoColor => None,
Theme::Default => LsColors::from_env(),
Theme::Default => Some(LsColors::from_env().unwrap_or_default()),
Theme::NoLscolors => None,
};