fix(path): use correct path for WSL conversion

This commit is contained in:
Jan De Dobbeleer 2022-10-19 11:51:22 +02:00 committed by Jan De Dobbeleer
parent b5091d8f03
commit e4d58213ec

View file

@ -79,7 +79,7 @@ func (pt *Path) Enabled() bool {
}
pt.setStyle()
if pt.env.IsWsl() {
pt.Location, _ = pt.env.RunCommand("wslpath", "-m", pt.pwd)
pt.Location, _ = pt.env.RunCommand("wslpath", "-m", pt.env.Pwd())
} else {
pt.Location = pt.pwd
}