From 02bc7658c9ce8d65a842d902e404017da441a30b Mon Sep 17 00:00:00 2001 From: A-Walrus <58790821+A-Walrus@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:05:01 +0300 Subject: [PATCH] Preview scratch buffers in jumplist picker (#7331) --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index c8ee7932d1eb2..93735aea54ac7 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2691,7 +2691,7 @@ fn jumplist_picker(cx: &mut Context) { |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)));