diff --git a/listview.lua b/listview.lua index e9e96c6..52d4d2b 100644 --- a/listview.lua +++ b/listview.lua @@ -13,10 +13,13 @@ local function setDrawLineFunc(drawLineFunc) end local function redrawLine(idx) - if drawLine then - local tw, th = frame.getSize() - if idx >= paginationOffset and idx-paginationOffset <= th then - frame.setCursorPos(1,idx-paginationOffset+1) + local tw, th = frame.getSize() + if idx >= paginationOffset and idx-paginationOffset <= th then + frame.setCursorPos(1,idx-paginationOffset+1) + frame.setBackgroundColor(colors.red) + frame.clearLine() + frame.setBackgroundColor(colors.black) + if drawLine then drawLine(frame, backingList[idx]) end end