Call set_pwd_per_drive() within stack::set_cwd()

This commit is contained in:
Zhenping Zhao
2024-11-21 22:14:54 -08:00
parent 444d55fd9d
commit 884214ecb4
5 changed files with 8 additions and 9 deletions

View File

@ -858,8 +858,6 @@ fn do_auto_cd(
report_shell_error(engine_state, &err);
return;
};
// Let PWD-per-drive sync with auto_cd target
let _ = nu_path::set_pwd_per_drive(PathBuf::from(path.clone()).as_path());
let cwd = Value::string(cwd, span);
let shells = stack.get_env_var(engine_state, "NUSHELL_SHELLS");