fix: wrong range check
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user