Store new config on application in :config-reload (#5431)
After changes in #5239, the loaded configuration wasn't stored,
resulting in a success message even if the instance kept the previous
configuration values.
commitb7ca0581d81f0ac80418a3e052df2bd5d9f71ad4
authorLorenzo Albano <loralb@posteo.net>
dateSun 8 Jan 2023, 16:30 (4 years ago)
parent0c51201
helix-term/src/application.rs+2
@@ -436,6 +436,8 @@ impl Application {
436436 .map_err(|err| anyhow::anyhow!("Failed to load config: {}", err))?;
437437 self.refresh_language_config()?;
438438 self.refresh_theme(&default_config)?;
439+ // Store new config
440+ self.config.store(Arc::new(default_config));
439441 Ok(())
440442 };
441443