Set CWD when editor is started with a directory (#849)

pull/853/head
Omnikar 3 years ago committed by GitHub
parent 4d07eaa48b
commit c71b49497d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,6 +100,7 @@ impl Application {
if !args.files.is_empty() {
let first = &args.files[0]; // we know it's not empty
if first.is_dir() {
std::env::set_current_dir(&first)?;
editor.new_file(Action::VerticalSplit);
compositor.push(Box::new(ui::file_picker(first.clone())));
} else {

Loading…
Cancel
Save