Skip to content

Commit 50c4bbd

Browse files
authored
Fix fzf_sink_command caused by using sink* (#1197)
1 parent 3f86943 commit 50c4bbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/language_server_protocol.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3103,8 +3103,9 @@ impl LanguageClient {
31033103

31043104
#[tracing::instrument(level = "info", skip(self))]
31053105
pub fn fzf_sink_command(&self, params: &Value) -> Result<()> {
3106-
let selection: String =
3106+
let fzf_selection: Vec<String> =
31073107
try_get("selection", params)?.ok_or_else(|| anyhow!("selection not found!"))?;
3108+
let selection = &fzf_selection[1]; // ignore the first element `fzf_action`
31083109
let tokens: Vec<&str> = selection.splitn(2, ": ").collect();
31093110
let kind = tokens
31103111
.get(0)

0 commit comments

Comments
 (0)