diff --git a/src/term/loop.lua b/src/term/loop.lua index 7da8b5d..045a797 100644 --- a/src/term/loop.lua +++ b/src/term/loop.lua @@ -10,6 +10,8 @@ function con.forLine(l, fn, oy) elseif l == '\r' then x = 0 else x = x + 1 end + if x + 1 > con.w + then x, y = 0, y + 1 end end return y end