mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 19:58:12 +03:00
Use current dir for file picker, after change dir. (#910)
This commit is contained in:
parent
f331ba9df4
commit
d61e5e686b
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user