Skip to content

Commit

Permalink
Store new config on application in :config-reload (#5431)
Browse files Browse the repository at this point in the history
After changes in #5239, the loaded configuration wasn't stored,
resulting in a success message even if the instance kept the previous
configuration values.
  • Loading branch information
Lorenzo Albano authored Jan 8, 2023
1 parent 0c51201 commit b7ca058
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ impl Application {
.map_err(|err| anyhow::anyhow!("Failed to load config: {}", err))?;
self.refresh_language_config()?;
self.refresh_theme(&default_config)?;
// Store new config
self.config.store(Arc::new(default_config));
Ok(())
};

Expand Down

0 comments on commit b7ca058

Please sign in to comment.