From 81e07e8105d650dea1214bcb2e4552988046f5cc Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Wed, 5 Oct 2022 17:15:32 +0800 Subject: [PATCH] :bug: fix mistaken edited color theme location Signed-off-by: Wei Zhang --- src/color.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/color.rs b/src/color.rs index 893885e..7a589c8 100644 --- a/src/color.rs +++ b/src/color.rs @@ -138,7 +138,8 @@ impl Colors { ThemeOption::NoColor => None, ThemeOption::Default | ThemeOption::NoLscolors => Some(Theme::default().color), ThemeOption::Custom(ref file) => { - Some(Theme::from_path::(file).unwrap_or_default()) + // TODO: drop the `themes` dir prefix, adding it here only for backwards compatibility + Some(Theme::from_path::(Path::new("themes").join(file).to_str().unwrap_or(file)).unwrap_or_default()) } }; let lscolors = match t {