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

@ -114,8 +114,6 @@ impl Command for Cd {
//FIXME: this only changes the current scope, but instead this environment variable
//should probably be a block that loads the information from the state in the overlay
PermissionResult::PermissionOk => {
// Let PWD-per-drive sync with cd target
let _ = nu_path::set_pwd_per_drive(path.as_path());
stack.set_cwd(path)?;
Ok(PipelineData::empty())
}