From e0ec33e387d163a06b88f41788a387877bed1fe0 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sun, 2 Jun 2024 01:52:02 +0200 Subject: [PATCH] Always override line in redrawLine --- listview.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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