Fix off-by-one in clearFrom of listview

This commit is contained in:
Ben 2024-06-02 21:20:35 +02:00
parent dc3ef47f76
commit e799266475
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -47,7 +47,7 @@ local function clearFrom(idx)
for j = length, idx, -1 do
backingList[j] = nil
end
length = idx
length = idx-1
for y = idx-paginationPos+1, th, 1 do
frame.setCursorPos(1, y)
frame.clearLine()