summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-11 14:19:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-11 14:19:18 +0800
commitd0e30d72b3ba8a2c7bd6f74b88ede6d3ae729c98 (patch)
tree1e271973a6504cf160d1d1e2efa4f22b056ade36 /script-beta
parentd4c83bca160fd4215aad241f466bb2485d9e00e5 (diff)
downloadlua-language-server-d0e30d72b3ba8a2c7bd6f74b88ede6d3ae729c98.zip
转移日志时,限制文件长度
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/log.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/log.lua b/script-beta/log.lua
index 257ef7bb..169fed7f 100644
--- a/script-beta/log.lua
+++ b/script-beta/log.lua
@@ -120,7 +120,7 @@ function m.init(root, path)
m.file = nil
local file = ioOpen(m.path, 'rb')
if file then
- lastBuf = file:read 'a'
+ lastBuf = file:read(m.maxSize)
file:close()
end
end