Skip to content

Commit

Permalink
fix(path): force linux style path for .Location
Browse files Browse the repository at this point in the history
resolves #5125
  • Loading branch information
JanDeDobbeleer committed Jun 20, 2024
1 parent b809944 commit 9f2c6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segments/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (pt *Path) Enabled() bool {
pt.setStyle()
pwd := pt.env.Pwd()

pt.Location = pt.env.TemplateCache().AbsolutePWD
pt.Location = strings.ReplaceAll(pt.env.TemplateCache().AbsolutePWD, `\`, `/`)
pt.StackCount = pt.env.StackCount()
pt.Writable = pt.env.DirIsWritable(pwd)
return true
Expand Down

0 comments on commit 9f2c6d1

Please sign in to comment.