1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-06-01 05:26:06 +02:00

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