mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-05 16:27:26 -08:00
parent
a86ab4f525
commit
fc80a8e11d
|
@ -375,7 +375,7 @@ func (pt *Path) getAgnosterShortPath() string {
|
||||||
func (pt *Path) getFullPath() string {
|
func (pt *Path) getFullPath() string {
|
||||||
rel := pt.relative
|
rel := pt.relative
|
||||||
pathSeparator := pt.env.PathSeparator()
|
pathSeparator := pt.env.PathSeparator()
|
||||||
if pt.root != pathSeparator && !strings.HasSuffix(pt.root, pathSeparator) {
|
if len(pt.root) != 0 && pt.root != pathSeparator && !strings.HasSuffix(pt.root, pathSeparator) {
|
||||||
rel = pathSeparator + rel
|
rel = pathSeparator + rel
|
||||||
}
|
}
|
||||||
path := pt.replaceFolderSeparators(rel)
|
path := pt.replaceFolderSeparators(rel)
|
||||||
|
|
Loading…
Reference in a new issue