diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index b97cb29e..c9cdd650 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -367,7 +367,6 @@ impl Application { let mut app_config = (*self.config.load().clone()).clone(); helix_event::dispatch(EditorConfigDidChange { old_config: &app_config.editor, - new_config: &editor_config, editor: &mut self.editor, }); app_config.editor = *editor_config; diff --git a/helix-term/src/handlers/blame.rs b/helix-term/src/handlers/blame.rs index fdf53b8c..9f6fe920 100644 --- a/helix-term/src/handlers/blame.rs +++ b/helix-term/src/handlers/blame.rs @@ -77,7 +77,7 @@ pub(super) fn register_hooks(handlers: &Handlers) { register_hook!(move |event: &mut EditorConfigDidChange<'_>| { let has_enabled_inline_blame = event.old_config.inline_blame.behaviour == InlineBlameBehaviour::Disabled - && event.new_config.inline_blame.behaviour != InlineBlameBehaviour::Disabled; + && event.editor.config().inline_blame.behaviour != InlineBlameBehaviour::Disabled; if has_enabled_inline_blame { // request blame for all documents, since any of them could have diff --git a/helix-view/src/events.rs b/helix-view/src/events.rs index 58881d9e..a54ec818 100644 --- a/helix-view/src/events.rs +++ b/helix-view/src/events.rs @@ -19,7 +19,6 @@ events! { } EditorConfigDidChange<'a> { old_config: &'a Config, - new_config: &'a Config, editor: &'a mut Editor } DocumentDidClose<'a> {