fix recent file picker empty space

pull/8675/merge^2
Matt Paras 2 months ago
parent dd2d562c14
commit b55e3c4b44

@ -2141,12 +2141,7 @@ fn configure_engine_impl(mut engine: Engine) -> Engine {
)];
let cwd = helix_stdx::env::current_working_dir();
let picker = ui::Picker::new(
columns,
0,
[PathBuf::from("")],
cwd,
move |cx, path: &PathBuf, action| {
let picker = ui::Picker::new(columns, 0, [], cwd, move |cx, path: &PathBuf, action| {
if let Err(e) = cx.editor.open(path, action) {
let err = if let Some(err) = e.source() {
format!("{}", err)
@ -2155,8 +2150,7 @@ fn configure_engine_impl(mut engine: Engine) -> Engine {
};
cx.editor.set_error(err);
}
},
)
})
.with_preview(|_editor, path| Some((PathOrId::Path(path.clone().into()), None)));
let injector = picker.injector();

Loading…
Cancel
Save