We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c1d184 commit 983eed2Copy full SHA for 983eed2
src/bin/edit/main.rs
@@ -250,7 +250,8 @@ fn handle_args(state: &mut State) -> apperr::Result<bool> {
250
break;
251
}
252
let p = cwd.join(Path::new(&arg));
253
- let p = path::normalize(&p);
+ // `p` is not absolute when `arg` is a drive letter path like `C:`
254
+ let p = if p.is_absolute() { path::normalize(&p) } else { p };
255
if !p.is_dir() {
256
paths.push(p);
257
0 commit comments