From d61e5e686be14b61b6d26c591147f8bfedd378bf Mon Sep 17 00:00:00 2001 From: radical3dd Date: Tue, 26 Oct 2021 02:43:14 +0200 Subject: [PATCH] Use current dir for file picker, after change dir. (#910) --- helix-term/src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 82ad04d7..662573c6 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -102,7 +102,7 @@ impl Application { if first.is_dir() { std::env::set_current_dir(&first)?; editor.new_file(Action::VerticalSplit); - compositor.push(Box::new(ui::file_picker(first.clone()))); + compositor.push(Box::new(ui::file_picker(".".into()))); } else { let nr_of_files = args.files.len(); editor.open(first.to_path_buf(), Action::VerticalSplit)?;