diff options
author | rabite0 <rabite@posteo.de> | 2019-04-20 12:59:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 12:59:30 +0200 |
commit | d1c932f4ac64e31856c524f46bb330a9218a5f21 (patch) | |
tree | 15066361c524d237a579bea85e42e3a2a976815c | |
parent | 8a7ee029f6f6bf07898531ae49088b3efa78c342 (diff) | |
parent | 38e1bf656b5352dbbc77cd2b4b163db52774b8bf (diff) |
Merge pull request #24 from cpdean/fix-lscolors
fix lscolors config if environment variable not set
NOTE: This got lost at some point. Remerging this now.
-rw-r--r-- | src/files.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.rs b/src/files.rs index d1a3775..38108e6 100644 --- a/src/files.rs +++ b/src/files.rs @@ -28,7 +28,7 @@ use crate::widget::Events; lazy_static! { - static ref COLORS: LsColors = LsColors::from_env().unwrap(); + static ref COLORS: LsColors = LsColors::from_env().unwrap_or_default(); static ref TAGS: RwLock<(bool, Vec<PathBuf>)> = RwLock::new((false, vec![])); } |