summaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorLorenzo Albano2023-01-08 15:30:38 +0000
committerGitHub2023-01-08 15:30:38 +0000
commitb7ca0581d81f0ac80418a3e052df2bd5d9f71ad4 (patch)
treec9601574e2394c09f67117eee746226fa01bbc29 /helix-term
parent0c51201ef21f567446746ae75950aa97b2bd6681 (diff)
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.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 729047e3..c0cbc245 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -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(())
};