fix(CountersSelectors): display selected line on other pages

This commit is contained in:
Guillaume ARM 2024-05-25 13:06:14 +02:00
parent cd2e624182
commit 1183442712

View File

@ -113,7 +113,7 @@ local function renderCountersMap(win, countersMap, selectedCounter)
win.write(tostring(v.name) .. ' ' .. tostring(v.count)) win.write(tostring(v.name) .. ' ' .. tostring(v.count))
end end
if k == selectedCounter then if k + nbElementsToOmit == selectedCounter then
withColor(win, colors.black, colors.white, writeLine) withColor(win, colors.black, colors.white, writeLine)
else else
withColor(win, colors.white, colors.black, writeLine) withColor(win, colors.white, colors.black, writeLine)