on master help sign in
Wrap current directory picker with overlay widget (#2308)
477b88eCossonLeo
helix-term/src/commands.rs+1−1
@@ -2091,7 +2091,7 @@ fn file_picker(cx: &mut Context) {
2091fn file_picker_in_current_directory(cx: &mut Context) {
2091fn file_picker_in_current_directory(cx: &mut Context) {
2092 let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
2092 let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
2093 let picker = ui::file_picker(cwd, &cx.editor.config());
2093 let picker = ui::file_picker(cwd, &cx.editor.config());
2094− cx.push_layer(Box::new(picker));
2094+ cx.push_layer(Box::new(overlayed(picker)));
2095}
2095}
2096
2096
2097fn buffer_picker(cx: &mut Context) {
2097fn buffer_picker(cx: &mut Context) {