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:
parent
5d3c3b55b8
commit
bd19f7da83
2
dir.go
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user