Skip to content

Commit 756253b

Browse files
committed
fix tree_sitter_scopes
1 parent 9a406b5 commit 756253b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

helix-term/src/commands/typed.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,12 +1077,13 @@ fn tree_sitter_scopes(
10771077
let contents = format!("```json\n{:?}\n````", scopes);
10781078

10791079
let callback = async move {
1080-
let call: job::Callback =
1081-
Box::new(move |editor: &mut Editor, compositor: &mut Compositor| {
1080+
let call: job::Callback = Callback::EditorCompositor(Box::new(
1081+
move |editor: &mut Editor, compositor: &mut Compositor| {
10821082
let contents = ui::Markdown::new(contents, editor.syn_loader.clone());
10831083
let popup = Popup::new("hover", contents).auto_close(true);
10841084
compositor.replace_or_push("hover", popup);
1085-
});
1085+
},
1086+
));
10861087
Ok(call)
10871088
};
10881089

0 commit comments

Comments
 (0)