aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorradical3dd2021-10-26 00:43:14 +0000
committerGitHub2021-10-26 00:43:14 +0000
commitd61e5e686be14b61b6d26c591147f8bfedd378bf (patch)
tree1973256da46efdcd33553c04b4f38a5406eefd0c /helix-term
parentf331ba9df4d7d22a5e9599737da581feb630f748 (diff)
Use current dir for file picker, after change dir. (#910)
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs2
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)?;