diff --git a/listview.lua b/listview.lua index 52d4d2b..402af3d 100644 --- a/listview.lua +++ b/listview.lua @@ -15,7 +15,7 @@ end local function redrawLine(idx) local tw, th = frame.getSize() if idx >= paginationOffset and idx-paginationOffset <= th then - frame.setCursorPos(1,idx-paginationOffset+1) + frame.setCursorPos(1, idx-paginationOffset+1) frame.setBackgroundColor(colors.red) frame.clearLine() frame.setBackgroundColor(colors.black) @@ -55,7 +55,7 @@ local function redraw() local backingIdx = paginationOffset for idx = 1, th, 1 do if backingList[backingIdx] ~= nil then - frame.setCursorPos(idx) + frame.setCursorPos(1, idx) drawLine(frame, backingList[backingIdx]) end end