From a815d3f8c22cbbb44c3977cf73f87943283c213c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 7 Sep 2022 16:28:31 +0800 Subject: fix #1529 --- script/parser/lines.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'script/parser/lines.lua') diff --git a/script/parser/lines.lua b/script/parser/lines.lua index 964aabf4..ffd021e6 100644 --- a/script/parser/lines.lua +++ b/script/parser/lines.lua @@ -6,6 +6,7 @@ return function (text) local current = 1 local lines = {} lines[0] = 1 + lines.size = #text local i = 0 while true do local pos = sfind(text,'[\r\n]', current) -- cgit v1.2.3