From 9b3c145438777263b59632165ae3ae97cd477517 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sun, 2 Jun 2024 02:02:47 +0200 Subject: [PATCH] Fix listview redraw missing x in setCursorPos --- listview.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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