From f144bdfc20ac7dae422be4afcbfb51a720a3b05c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 19 May 2022 05:50:33 -0700 Subject: [PATCH] simpler --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 5ba82fa..7b0a434 100644 --- a/main.lua +++ b/main.lua @@ -108,9 +108,9 @@ function love.draw() end local y = 0 for line_index,line in ipairs(Lines) do + if y > Screen_height then break end if line_index >= Screen_top_line then y = math.floor(y+15*Zoom) - if y > Screen_height then break end Screen_bottom_line = line_index line.y = y if line.mode == 'text' and line.data == '' then