Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit theme #3067

Merged
merged 8 commits into from
Oct 3, 2022
Prev Previous commit
Next Next commit
Simplify return for Loader::load
  • Loading branch information
TheSamsa committed Sep 6, 2022
commit 43e7cd47226f7f8be51776427a84e1e1c9e6500a
4 changes: 1 addition & 3 deletions helix-view/src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ impl Loader {
return Ok(self.base16_default());
}

let theme_toml = self.load_theme(name, name, false)?;

Ok(Theme::from(theme_toml))
self.load_theme(name, name, false).map(Theme::from)
}

// load the theme and its parent recursively and merge them
Expand Down