From 0cbbf38865338305de2d0b1d45c7314910f7bb42 Mon Sep 17 00:00:00 2001 From: Er2 Date: Tue, 22 Feb 2022 21:57:24 +0300 Subject: [PATCH] revert line break --- src/term/loop.lua | 2 ++ 1 file changed, 2 insertions(+) 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