From 118344271291ccaeb23cbd1f8b7ce8c05d993547 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Sat, 25 May 2024 13:06:14 +0200 Subject: [PATCH] fix(CountersSelectors): display selected line on other pages --- libs/ui/CountersSelector.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)