Wrap current directory picker with overlay widget (#2308)

This commit is contained in:
CossonLeo 2022-04-28 21:17:24 +08:00 committed by GitHub
parent 3a398eec56
commit 477b88e99c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2091,7 +2091,7 @@ fn file_picker(cx: &mut Context) {
fn file_picker_in_current_directory(cx: &mut Context) {
let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
let picker = ui::file_picker(cwd, &cx.editor.config());
cx.push_layer(Box::new(picker));
cx.push_layer(Box::new(overlayed(picker)));
}
fn buffer_picker(cx: &mut Context) {