From 55314b33b2b3a6054febdcac0b1dec05f8769e8b Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 01:29:02 -0300 Subject: [PATCH] fix: variable name --- lua/CC Tweaked/tutel/tutel-host.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 6196c08..2551540 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -282,6 +282,8 @@ function drawLogs(x0, y0, x1, y1) for lineIdx=#wrappedMessage,1, -1 do if drawnLines > h then break end + local line = wrappedMessage[lineIdx] + term.setCursorPos(1, y1 - drawnLines) if lineIdx == 1 then @@ -295,7 +297,7 @@ function drawLogs(x0, y0, x1, y1) term.setBackgroundColor(messageBG) term.setTextColor(messageFG) - term.write(wrappedMessage[lineIdx]) + term.write(line) local remaining = w - (prefixLength + #line) if remaining > 0 then