on master help sign in
Use current dir for file picker, after change dir. (#910)
d61e5e6radical3dd
helix-term/src/application.rs+1−1
@@ -102,7 +102,7 @@ impl Application {
102 if first.is_dir() {
102 if first.is_dir() {
103 std::env::set_current_dir(&first)?;
103 std::env::set_current_dir(&first)?;
104 editor.new_file(Action::VerticalSplit);
104 editor.new_file(Action::VerticalSplit);
105− compositor.push(Box::new(ui::file_picker(first.clone())));
105+ compositor.push(Box::new(ui::file_picker(".".into())));
106 } else {
106 } else {
107 let nr_of_files = args.files.len();
107 let nr_of_files = args.files.len();
108 editor.open(first.to_path_buf(), Action::VerticalSplit)?;
108 editor.open(first.to_path_buf(), Action::VerticalSplit)?;