related to https://github.com/denisidoro/navi/issues/576
For the following config
cheats:
paths:
- C:\\Users\\Administrator\\AppData\\Roaming\\navi\\cheat
- C:\\Users\\Administrator\\AppData\\Roaming\\navi\\cheat
navi now gets incorrect paths on Windows, since the seperator `:` for
path join is a valid component.
[2023-05-12T08:58:26Z DEBUG navi::commands::core] Filesystem(
Some(
"C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat:C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat",
),
)
[2023-05-12T08:58:28Z DEBUG navi::filesystem] filesystem::Fetcher = Fetcher {
path: Some(
"C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat:C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat",
),
files: RefCell {
value: [],
},
}
With multiple variables in the preview, each with
different «--map» options, there is an application
of the map code for the current variable to the
preview of the other variables as well.
This code fixes that.