From 477b88e99cb64576c0ea85b13f71fb43d36fc259 Mon Sep 17 00:00:00 2001 From: CossonLeo <20379044+cossonleo@users.noreply.github.com> Date: Thu, 28 Apr 2022 21:17:24 +0800 Subject: [PATCH] Wrap current directory picker with overlay widget (#2308) --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index ee2afb72f..d1c1724a1 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -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) {