fix: correct prefix space

This commit is contained in:
2025-05-08 01:07:02 -03:00
parent 3bcce0f50f
commit cc2988dbc8
+2 -2
View File
@@ -248,7 +248,7 @@ function drawLogs(x0, y0, x1, y1)
term.setBackgroundColor(format["BG"])
term.setTextColor(format["FG"])
local prefix = ("[%s] "):format(entry.type)
local prefix = ("[%s]"):format(entry.type)
local prefixLength = #prefix
local maxMessageWidth = w - prefixLength
@@ -285,7 +285,7 @@ function drawLogs(x0, y0, x1, y1)
else
term.setBackgroundColor(messageBG)
term.setTextColor(messageFG)
term.write((" "):rep(prefixLength))
term.write((" "):rep(prefixLength + 1))
term.write(line)
end