@@ -156,9 +156,6 @@ impl Application {
156156 let editor_view = Box::new(ui::EditorView::new(Keymaps::new(keys)));
157157 compositor.push(editor_view);
158158
159− if let Some(path) = args.working_directory {
160− helix_loader::set_current_working_dir(path)?
161− }
162159 if args.load_tutor {
163160 let path = helix_loader::runtime_file(Path::new("tutor"));
164161 editor.open(&path, Action::VerticalSplit)?;
@@ -167,7 +164,7 @@ impl Application {
167164 } else if !args.files.is_empty() {
168165 let first = &args.files[0].0; // we know it's not empty
169166 if first.is_dir() {
170− helix_loader::set_current_working_dir(first.clone())?;
167+ // NOTE: The working directory is already set to args.files[0] in main()
171168 editor.new_file(Action::VerticalSplit);
172169 let picker = ui::file_picker(".".into(), &config.load().editor);
173170 compositor.push(Box::new(overlaid(picker)));