fix: variable name

This commit is contained in:
2025-05-08 01:29:02 -03:00
parent a6ce7c8b48
commit 55314b33b2
+3 -1
View File
@@ -282,6 +282,8 @@ function drawLogs(x0, y0, x1, y1)
for lineIdx=#wrappedMessage,1, -1 do for lineIdx=#wrappedMessage,1, -1 do
if drawnLines > h then break end if drawnLines > h then break end
local line = wrappedMessage[lineIdx]
term.setCursorPos(1, y1 - drawnLines) term.setCursorPos(1, y1 - drawnLines)
if lineIdx == 1 then if lineIdx == 1 then
@@ -295,7 +297,7 @@ function drawLogs(x0, y0, x1, y1)
term.setBackgroundColor(messageBG) term.setBackgroundColor(messageBG)
term.setTextColor(messageFG) term.setTextColor(messageFG)
term.write(wrappedMessage[lineIdx]) term.write(line)
local remaining = w - (prefixLength + #line) local remaining = w - (prefixLength + #line)
if remaining > 0 then if remaining > 0 then