fix error text peeking through the scroll text
lazyvim also changed the indentation of everything for some reason i don't know what's the name for "scroll text"
This commit is contained in:
@@ -61,12 +61,14 @@ if not result then
|
||||
local function render()
|
||||
gpu.setForeground(0xFFFFFF)
|
||||
local i = 2
|
||||
reason = "A fatal error has occurred.\nHalyde cannot continue.\n \n" .. tostring(reason or "unknown error"):gsub("\t", " ")
|
||||
reason = "A fatal error has occurred.\nHalyde cannot continue.\n \n"
|
||||
.. tostring(reason or "unknown error"):gsub("\t", " ")
|
||||
for line in string.gmatch(reason, "([^\n]*)\n?") do
|
||||
gpu.set(2, i, line)
|
||||
i = i + 1
|
||||
end
|
||||
gpu.set(1, resY - 1, string.rep("─", resX))
|
||||
gpu.fill(1, resY - 1, resX, 1, "─")
|
||||
gpu.fill(1, resY, resX, 1, " ")
|
||||
gpu.setForeground(bgColor)
|
||||
gpu.setBackground(0xFFFFFF)
|
||||
gpu.set(2, resY, "🠅 🠄 🠇 🠆")
|
||||
@@ -75,7 +77,7 @@ if not result then
|
||||
gpu.set(4, resY, " / ")
|
||||
gpu.set(9, resY, " / ")
|
||||
gpu.set(14, resY, " / ")
|
||||
gpu.set(20, resY, "Scroll" .. string.rep(" ", resX - 21))
|
||||
gpu.set(19, resY, " Scroll" .. string.rep(" ", resX - 21))
|
||||
end
|
||||
render()
|
||||
beep(440, 0.2)
|
||||
|
||||
Reference in New Issue
Block a user