diff options
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/application.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 7667441b..b3fa79ee 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -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 { |