From 510f91e80116c3f533b3537a823c87a0131fcda4 Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Wed, 7 Aug 2019 12:32:10 +0530 Subject: [PATCH] let lscolors apply default colors if LS_COLORS not defined --- src/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color.rs b/src/color.rs index a459bd9..b18a857 100644 --- a/src/color.rs +++ b/src/color.rs @@ -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, };