From b7ca0581d81f0ac80418a3e052df2bd5d9f71ad4 Mon Sep 17 00:00:00 2001 From: Lorenzo Albano Date: Sun, 8 Jan 2023 16:30:38 +0100 Subject: [PATCH] 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. --- helix-term/src/application.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 729047e3a..c0cbc2451 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(()) };