Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/editor.rs')
| -rw-r--r-- | helix-view/src/editor.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 575a0b5f..2e5c60cf 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -1289,11 +1289,16 @@ impl Editor { /// Call if the config has changed to let the editor update all /// relevant members. - pub fn refresh_config(&mut self) { + pub fn refresh_config(&mut self, old_config: &Config) { let config = self.config(); self.auto_pairs = (&config.auto_pairs).into(); self.reset_idle_timer(); self._refresh(); + helix_event::dispatch(crate::events::ConfigDidChange { + editor: self, + old: old_config, + new: &config, + }) } pub fn clear_idle_timer(&mut self) { |