dir: Fix assignment of Prev field

This commit is contained in:
Adnan Maolood 2021-05-12 16:20:19 -04:00
parent b250f9e4c5
commit e1894f0e52

2
dir.go
View file

@ -277,7 +277,7 @@ func (d *Dir) sort() {
})
for i := range d.Pages {
if i-1 > 0 {
if i-1 >= 0 {
d.Pages[i].Prev = d.Pages[i-1]
}
if i+1 < len(d.Pages) {