fix(path): map to default registry icon correctly

This commit is contained in:
L. Yeung 2022-09-01 16:28:03 +08:00 committed by Jan De Dobbeleer
parent e5b3b00a43
commit 5df8d89902

View file

@ -357,8 +357,8 @@ func (pt *Path) replaceMappedLocations(pwd string) string {
mappedLocations := map[string]string{}
if pt.props.GetBool(MappedLocationsEnabled, true) {
mappedLocations["HKCU:"] = pt.props.GetString(WindowsRegistryIcon, "\uF013")
mappedLocations["HKLM:"] = pt.props.GetString(WindowsRegistryIcon, "\uF013")
mappedLocations["hkcu:"] = pt.props.GetString(WindowsRegistryIcon, "\uF013")
mappedLocations["hklm:"] = pt.props.GetString(WindowsRegistryIcon, "\uF013")
mappedLocations[pt.normalize(pt.env.Home())] = pt.props.GetString(HomeIcon, "~")
}