diff --git a/libs/ui/CountersSelector.lua b/libs/ui/CountersSelector.lua index c6344be..ba8c6cb 100644 --- a/libs/ui/CountersSelector.lua +++ b/libs/ui/CountersSelector.lua @@ -113,7 +113,7 @@ local function renderCountersMap(win, countersMap, selectedCounter) win.write(tostring(v.name) .. ' ' .. tostring(v.count)) end - if k == selectedCounter then + if k + nbElementsToOmit == selectedCounter then withColor(win, colors.black, colors.white, writeLine) else withColor(win, colors.white, colors.black, writeLine)