Fix changing to a new Windows drive (#1721)

* Fix changing to a new Windows drive

* Update cli.rs
This commit is contained in:
Jonathan Turner 2020-05-07 05:51:03 +12:00 committed by GitHub
parent c06a692709
commit 8a9fc6a721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {