Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/application.rs')
| -rw-r--r-- | helix-term/src/application.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index dd19a2d7..17b58420 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -356,6 +356,8 @@ impl Application { } pub fn handle_config_events(&mut self, config_event: ConfigEvent) { + let old_editor_config = self.editor.config(); + match config_event { ConfigEvent::Refresh => self.refresh_config(), @@ -374,7 +376,7 @@ impl Application { // Update all the relevant members in the editor after updating // the configuration. - self.editor.refresh_config(); + self.editor.refresh_config(&old_editor_config); // reset view position in case softwrap was enabled/disabled let scrolloff = self.editor.config().scrolloff; |