From 036d160ee47ab6666c4e64bdb152129f272ecb1a Mon Sep 17 00:00:00 2001 From: Lorenzo Albano Date: Fri, 6 Jan 2023 17:10:48 +0100 Subject: [PATCH] Actually update current helix instance configuration. 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 729047e3a5d5..c0cbc2451483 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(()) };