diff options
author | radical3dd | 2021-10-26 00:43:14 +0000 |
---|---|---|
committer | GitHub | 2021-10-26 00:43:14 +0000 |
commit | d61e5e686be14b61b6d26c591147f8bfedd378bf (patch) | |
tree | 1973256da46efdcd33553c04b4f38a5406eefd0c | |
parent | f331ba9df4d7d22a5e9599737da581feb630f748 (diff) |
Use current dir for file picker, after change dir. (#910)
-rw-r--r-- | helix-term/src/application.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)?; |