fix status line setting

This commit is contained in:
Izaya 2023-11-23 08:50:44 +10:00
parent ad3396f025
commit 30adec127f

View File

@ -86,7 +86,7 @@ local function formatEntries(t,used,size,searchterm)
local rt = {}
local mx, my = mtmenu.getScreenSize()
rt.header = " Name" .. (" "):rep(mx-11) .. "Count"
rt.status = string.format(" %s (%i/%i) %s %s", phases[math.floor((os.time()-43200)/86400)%8], used, size, searchterm):sub(1,mx):sub(1,mx-7) .. "[H]elp"
rt.status = string.format(" %s (%i/%i) %s %s", phases[math.floor((os.time()-43200)/86400)%8], used, size, searchterm, (" "):rep(mx)):sub(1,mx):sub(1,mx-5) .. "[H]elp"
for k,v in ipairs(t) do
-- (YYxYY+NN)
local count = string.format("(%ix%i+%i)",v.size//v.maxSize, v.maxSize, v.size%v.maxSize)