feat: add log offset

This commit is contained in:
2025-05-06 20:14:11 -03:00
parent 53567dd5c9
commit 6bf60c00fe
+1 -1
View File
@@ -239,7 +239,7 @@ function updateScreen()
-- logs
local function drawLogs(startY, endY)
local drawnLines = 0
for i = #log.buffer, 1, -1 do
for i = #log.buffer - logOffset, 1, -1 do
if drawnLines > endY - startY then break end
local entry = log.buffer[i]