Fix redraw not iterating backingIdx

This commit is contained in:
Ben 2024-06-02 02:08:55 +02:00
parent 9b3c145438
commit 20a4488a64
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -54,10 +54,13 @@ local function redraw()
local tw, th = frame.getSize() local tw, th = frame.getSize()
local backingIdx = paginationOffset local backingIdx = paginationOffset
for idx = 1, th, 1 do for idx = 1, th, 1 do
if backingList[backingIdx] ~= nil then
frame.setCursorPos(1, idx) frame.setCursorPos(1, idx)
if backingList[backingIdx] == nil then
frame.clearLine()
else
drawLine(frame, backingList[backingIdx]) drawLine(frame, backingList[backingIdx])
end end
backingIdx = backingIdx + 1
end end
end end
end end