Skip to content

Commit

Permalink
Preview scratch buffers in jumplist picker (helix-editor#7331)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Walrus authored and wes-adams committed Jul 3, 2023
1 parent aa2ba4b commit 02bc765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 02bc765

Please sign in to comment.