mirror of
https://github.com/nushell/nushell
synced 2025-01-12 21:29:07 +00:00
Fix changing to a new Windows drive (#1721)
* Fix changing to a new Windows drive * Update cli.rs
This commit is contained in:
parent
c06a692709
commit
8a9fc6a721
1 changed files with 2 additions and 1 deletions
|
@ -812,7 +812,8 @@ async fn process_line(
|
|||
ctx.shell_manager.set_path(val.to_string());
|
||||
return LineResult::Success(line.to_string());
|
||||
} else {
|
||||
ctx.shell_manager.set_path(name.to_string());
|
||||
ctx.shell_manager
|
||||
.set_path(format!("{}\\", name.to_string()));
|
||||
return LineResult::Success(line.to_string());
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue