mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
parent
34e5dd9709
commit
5f095d61f2
|
@ -257,13 +257,14 @@ func (pt *Path) getAgnosterPath() string {
|
|||
|
||||
var elements []string
|
||||
n := len(pt.Folders)
|
||||
for i := 1; i < n; i++ {
|
||||
for i := 0; i < n-1; i++ {
|
||||
name := folderIcon
|
||||
|
||||
if pt.Folders[i].Display {
|
||||
elements = append(elements, pt.Folders[i].Name)
|
||||
continue
|
||||
name = pt.Folders[i].Name
|
||||
}
|
||||
|
||||
elements = append(elements, folderIcon)
|
||||
elements = append(elements, name)
|
||||
}
|
||||
|
||||
if len(pt.Folders) > 0 {
|
||||
|
|
Loading…
Reference in a new issue