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