1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-12-04 19:08:22 +01:00

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

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