Use current dir for file picker, after change dir. (#910)
This commit is contained in:
parent
f331ba9df4
commit
d61e5e686b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue