fix: wrong range check

This commit is contained in:
2025-05-06 20:11:15 -03:00
parent 9cf79a4001
commit 66373685a0
+1 -1
View File
@@ -239,7 +239,7 @@ function updateScreen()
-- logs
local function drawLogs(startY, endY)
for i = #log.buffer, 1, -1 do
if i > endY then break end
if i > endY - startY then break end
local entry = log.buffer[i]
local format = logTypes[entry.type]