fix(path): correct logic for agnoster style

relates to #4727
This commit is contained in:
Jan De Dobbeleer 2024-04-25 08:28:08 +02:00 committed by Jan De Dobbeleer
parent 34e5dd9709
commit 5f095d61f2

View file

@ -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 {