mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01: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
@ -812,7 +812,8 @@ async fn process_line(
|
|||||||
ctx.shell_manager.set_path(val.to_string());
|
ctx.shell_manager.set_path(val.to_string());
|
||||||
return LineResult::Success(line.to_string());
|
return LineResult::Success(line.to_string());
|
||||||
} else {
|
} else {
|
||||||
ctx.shell_manager.set_path(name.to_string());
|
ctx.shell_manager
|
||||||
|
.set_path(format!("{}\\", name.to_string()));
|
||||||
return LineResult::Success(line.to_string());
|
return LineResult::Success(line.to_string());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user