diff --git a/listframes.lua b/listframes.lua index 5a53343..e8d8665 100644 --- a/listframes.lua +++ b/listframes.lua @@ -59,10 +59,10 @@ local function redrawEntry(idx) local tw, th = frame.getSize() local xPos, yPos = entryFrame.getPosition() local xSize, ySize = entryFrame.getSize() - local visibile = (yPos+ySize-1) >= paginationPos and yPos <= th - debugLog.writeLine("[redrawEntry] idx="..idx..", yPos="..yPos..", visible="..visibile) + local visible = (yPos+ySize-1) >= paginationPos and yPos <= th + debugLog.writeLine(string.format("[redrawEntry] idx=%d, yPos=%d, visible=%t", idx, yPos, visible)) debugLog.flush() - entryFrame.setVisible(visibile) + entryFrame.setVisible(visible) end end