From d64d75e72434842f2cceff2c77a03efab5e7a0bc Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Mon, 28 Jun 2021 07:48:38 -0500 Subject: Add some async job infrastructure. --- helix-term/src/ui/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src/ui') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 7d97c2ba..b55a830e 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -621,7 +621,7 @@ impl Component for EditorView { count: None, callback: None, on_next_key_callback: None, - callbacks: cx.callbacks, + jobs: cx.jobs, }; if let Some(on_next_key) = self.on_next_key.take() { @@ -639,7 +639,7 @@ impl Component for EditorView { // use a fake context here let mut cx = Context { editor: cxt.editor, - callbacks: cxt.callbacks, + jobs: cxt.jobs, scroll: None, }; let res = completion.handle_event(event, &mut cx); -- cgit v1.2.3-70-g09d2