From efb5856e30ec9dfeec5dafd7ee1014efecdc094b Mon Sep 17 00:00:00 2001 From: Schuyler Mortimer Date: Tue, 9 Jul 2024 09:13:45 -0700 Subject: [PATCH] rebase on main --- helix-term/src/commands/typed.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 763da1c43..d316726ae 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1412,9 +1412,11 @@ fn lsp_workspace_command( let picker = ui::Picker::new( commands, (), - move |cx, LsIdCommand(ls_id, command), _action| { - let Some(c) = command else { return }; - execute_lsp_command(cx.editor, *ls_id, c.clone()); + move |cx, ls_id_command: Option<&LsIdCommand>, _action| { + let Some(LsIdCommand(ls_id, c)) = ls_id_command else { + return; + }; + execute_lsp_command(cx.editor, *ls_id, c.clone()); }, ); compositor.push(Box::new(overlaid(picker)))