mirror of
https://github.com/nushell/nushell.git
synced 2024-11-28 19:33:47 +01:00
Call std::env::set_current_dir() to help maintain current directory by system
This commit is contained in:
parent
a888b6cf25
commit
22a7e46891
@ -137,6 +137,7 @@ impl DriveToPwdMap {
|
||||
Some(_) => {
|
||||
let drive_index = drive_letter as usize - 'A' as usize;
|
||||
self.map[drive_index] = Some(drive_letter.to_string() + c.as_str());
|
||||
let _ = std::env::set_current_dir(path_str);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user