diff options
author | Bjorn Ove Hay Andersen | 2023-10-18 08:45:05 +0000 |
---|---|---|
committer | GitHub | 2023-10-18 08:45:05 +0000 |
commit | e6d2835b0907102831a8979688a8464c064ff842 (patch) | |
tree | 0fe84faa8dd583f318596a593f4c286c9a4b7222 /helix-term/src/application.rs | |
parent | fc16449efe58a49c15e19c9fde6584d8625493fd (diff) |
Fixed issue when the first file specified as an argument was a relative directory (#8520)
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index fabd0fa4..43e1cdfc 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -162,8 +162,7 @@ impl Application { // Unset path to prevent accidentally saving to the original tutor file. doc_mut!(editor).set_path(None); } else if !args.files.is_empty() { - let first = &args.files[0].0; // we know it's not empty - if first.is_dir() { + if args.open_cwd { // NOTE: The working directory is already set to args.files[0] in main() editor.new_file(Action::VerticalSplit); let picker = ui::file_picker(".".into(), &config.load().editor); |