mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-13 21:52:37 +00:00
🐛 fix mistaken edited color theme location
Signed-off-by: Wei Zhang <kweizh@gmail.com>
This commit is contained in:
parent
acae1201a8
commit
81e07e8105
1 changed files with 2 additions and 1 deletions
|
@ -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::<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 {
|
||||
|
|
Loading…
Reference in a new issue