mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 22:07:25 -08:00
parent
a86ab4f525
commit
fc80a8e11d
|
@ -375,7 +375,7 @@ func (pt *Path) getAgnosterShortPath() string {
|
|||
func (pt *Path) getFullPath() string {
|
||||
rel := pt.relative
|
||||
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
|
||||
}
|
||||
path := pt.replaceFolderSeparators(rel)
|
||||
|
|
Loading…
Reference in a new issue