summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2021-10-01 16:43:26 +0800
committersumneko <sumneko@hotmail.com>2021-10-01 16:43:26 +0800
commit6f15cb34d4a7ea18455a1050ab0d428b6faabc5d (patch)
tree9182cf904c5cddd86e317e2c33d1f2cb8b1715f1 /script
parent1eb1a9b5a413e30b2831fa3d7ee23cc35a7131dd (diff)
downloadlua-language-server-6f15cb34d4a7ea18455a1050ab0d428b6faabc5d.zip
fix
Diffstat (limited to 'script')
-rw-r--r--script/library.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/library.lua b/script/library.lua
index e0c32023..434a3bcf 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -313,8 +313,10 @@ end
local function apply3rd(cfg, onlyMemory)
local changes = {}
- for _, change in ipairs(cfg.configs) do
- changes[#changes+1] = change
+ if cfg.configs then
+ for _, change in ipairs(cfg.configs) do
+ changes[#changes+1] = change
+ end
end
if cfg.plugin then