diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index a4f4414ab..b7a22c7b2 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2680,7 +2680,7 @@ fn format(&self, _data: &Self::Data) -> Row { |editor, meta| { let doc = &editor.documents.get(&meta.id)?; let line = meta.selection.primary().cursor_line(doc.text().slice(..)); - Some((meta.path.clone()?.into(), Some((line, line)))) + Some((meta.id.into(), Some((line, line)))) }, ); cx.push_layer(Box::new(overlaid(picker)));