From 471204380d057d6c6d82cd9dd6bff5823d36e33b Mon Sep 17 00:00:00 2001 From: neru Date: Wed, 7 May 2025 23:38:41 -0300 Subject: [PATCH] fix: typo --- lua/CC Tweaked/tutel/tutel-host.lua | 32 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 0c7559a..13686e6 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -208,30 +208,30 @@ local function drawLogs(x0, y0, x1, y1) local drawnLines = 0 for i = #log.bufer - logOffset, 1, -1 do if drawnLines > y then break end - + local entry = log.buffer[i] local format = logTypes[entry.type] term.setCursorPos(1, endY - drawnLines) - ocal prevColourBg = term.getBackgroundColour() - local prevColourFg = term.getTextColour() + local prevColourBg = term.getBackgroundColour() + local prevColourFg = term.getTextColour() - term.setBackgroundColour(format["BG"]) - term.setTextColour(format["FG"]) - term.write(("[%s]"):format(entry.type)) + term.setBackgroundColour(format["BG"]) + term.setTextColour(format["FG"]) + term.write(("[%s]"):format(entry.type)) - if format["AffectContent"] then - term.write((" %s\n"):format(entry.message)) - term.setBackgroundColour(prevColourBg) - term.setTextColour(prevColourFg) - else - term.setBackgroundColour(prevColourBg) - term.setTextColour(prevColourFg) - term.write((" %s\n"):format(entry.message)) - end + if format["AffectContent"] then + term.write((" %s\n"):format(entry.message)) + term.setBackgroundColour(prevColourBg) + term.setTextColour(prevColourFg) + else + term.setBackgroundColour(prevColourBg) + term.setTextColour(prevColourFg) + term.write((" %s\n"):format(entry.message)) + end - drawnLines = drawnLines + 1 + drawnLines = drawnLines + 1 end end