mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Preview scratch buffers in jumplist picker (#7331)
This commit is contained in:
parent
a4a86120e8
commit
4d8c9a394e
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user