diff options
author | sumneko <sumneko@hotmail.com> | 2021-10-01 16:43:26 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2021-10-01 16:43:26 +0800 |
commit | 6f15cb34d4a7ea18455a1050ab0d428b6faabc5d (patch) | |
tree | 9182cf904c5cddd86e317e2c33d1f2cb8b1715f1 /script | |
parent | 1eb1a9b5a413e30b2831fa3d7ee23cc35a7131dd (diff) | |
download | lua-language-server-6f15cb34d4a7ea18455a1050ab0d428b6faabc5d.zip |
fix
Diffstat (limited to 'script')
-rw-r--r-- | script/library.lua | 6 |
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 |