diff options
author | Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> | 2022-08-02 23:15:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 23:15:33 +0900 |
commit | 4e9ad2e6943eb057097f394ad7c843280be2125d (patch) | |
tree | d3d2ed4e3e892a658f8e9b40d8a6274b74566f11 /zellij-utils | |
parent | 68c5f1e051cee609fc75e575131ade78e5cbcb08 (diff) |
fix: theme not loading without config (#1631)
Diffstat (limited to 'zellij-utils')
-rw-r--r-- | zellij-utils/src/setup.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zellij-utils/src/setup.rs b/zellij-utils/src/setup.rs index 17e2f3145..9b478e052 100644 --- a/zellij-utils/src/setup.rs +++ b/zellij-utils/src/setup.rs @@ -270,7 +270,10 @@ mod not_wasm { if let Some(extension) = entry.path().extension() { if extension == "yaml" || extension == "yml" { if let Ok(themes) = ThemesFromYaml::from_path(&entry.path()) { - config.themes = config.themes.map(|t| t.merge(themes.into())); + match config.themes { + Some(t) => config.themes = Some(t.merge(themes.into())), + None => config.themes = Some(themes.into()), + } } } } |