dir: Fix assignment of Prev field

This commit is contained in:
adnano 2021-05-12 16:20:19 -04:00
parent 5d3c3b55b8
commit bd19f7da83

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