dualfroz ba0a85b19f util: Fix path truncation when the file name repeats in a parent dir
`PathWithPosition::parse_str` stripped the position suffix by searching
the whole path for the captured file name, so `foo/foo:10:2` was cut at
the first `foo` and parsed as `foo`. The same happened for
`main.rs-backup/src/main.rs:10:2`.

The captured file name is a slice of the last path component, so cut the
path right after it instead. Switching to `rsplit_once` would not work
either, since the last occurrence lands inside the position suffix for
numeric names like `1/1:1:1`.

Closes #64174
2026-10-02 16:43:56 +02:00
S
Description
My contributions to zed-industries/zed: 11 commits, 1 merged PRs
1.6 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 100%