aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorJoe Neeman2021-06-28 12:48:38 +0000
committerBlaž Hrastnik2021-06-30 08:08:50 +0000
commitd64d75e72434842f2cceff2c77a03efab5e7a0bc (patch)
tree6c296d23d2d3fea0f0bd5d84d6cd9cda4c36c96c /helix-term/src/ui
parentc9be480bf86489fbf659b45b107be0d26a076b50 (diff)
Add some async job infrastructure.
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/editor.rs4
1 files changed, 2 insertions, 2 deletions
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);