Preview scratch buffers in jumplist picker (#7331)

This commit is contained in:
A-Walrus 2023-06-13 17:05:01 +03:00 committed by GitHub
parent a4a86120e8
commit 4d8c9a394e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2680,7 +2680,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)));