mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
fixed stupid stupid bug that made term.write fail horribly when writing multiline strings in non-wrapping mode
This commit is contained in:
parent
6f8bb90f24
commit
794590399d
@ -338,7 +338,7 @@ function term.write(value, wrap)
|
||||
end
|
||||
local blink = term.getCursorBlink()
|
||||
term.setCursorBlink(false)
|
||||
local line, nl = value
|
||||
local line, nl
|
||||
repeat
|
||||
local wrapAfter, margin = math.huge, math.huge
|
||||
if wrap then
|
||||
@ -356,7 +356,7 @@ function term.write(value, wrap)
|
||||
component.gpu.fill(1, h, w, 1, " ")
|
||||
cursorY = h
|
||||
end
|
||||
until not wrap or not value
|
||||
until not value
|
||||
term.setCursorBlink(blink)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user