Fix off-by-one in clearFrom of listview
This commit is contained in:
parent
dc3ef47f76
commit
e799266475
|
@ -47,7 +47,7 @@ local function clearFrom(idx)
|
||||||
for j = length, idx, -1 do
|
for j = length, idx, -1 do
|
||||||
backingList[j] = nil
|
backingList[j] = nil
|
||||||
end
|
end
|
||||||
length = idx
|
length = idx-1
|
||||||
for y = idx-paginationPos+1, th, 1 do
|
for y = idx-paginationPos+1, th, 1 do
|
||||||
frame.setCursorPos(1, y)
|
frame.setCursorPos(1, y)
|
||||||
frame.clearLine()
|
frame.clearLine()
|
||||||
|
|
Loading…
Reference in a new issue