🐛 fix mistaken edited color theme location

Signed-off-by: Wei Zhang <kweizh@gmail.com>
This commit is contained in:
Wei Zhang 2022-10-05 17:15:32 +08:00 committed by Abin Simon
parent acae1201a8
commit 81e07e8105

View file

@ -138,7 +138,8 @@ impl Colors {
ThemeOption::NoColor => None, ThemeOption::NoColor => None,
ThemeOption::Default | ThemeOption::NoLscolors => Some(Theme::default().color), ThemeOption::Default | ThemeOption::NoLscolors => Some(Theme::default().color),
ThemeOption::Custom(ref file) => { ThemeOption::Custom(ref file) => {
Some(Theme::from_path::<ColorTheme>(file).unwrap_or_default()) // TODO: drop the `themes` dir prefix, adding it here only for backwards compatibility
Some(Theme::from_path::<ColorTheme>(Path::new("themes").join(file).to_str().unwrap_or(file)).unwrap_or_default())
} }
}; };
let lscolors = match t { let lscolors = match t {