summaryrefslogtreecommitdiff
path: root/script/config/config.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-08 15:13:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-08 15:13:26 +0800
commitde357b269401021fe38eae93ced5b5738877958a (patch)
tree3e6ba0896fbb82d169b7d25799199cca4955c381 /script/config/config.lua
parent886f4c8dfe56ad914daedc513a3ee03bcb305e16 (diff)
downloadlua-language-server-de357b269401021fe38eae93ced5b5738877958a.zip
fix
Diffstat (limited to 'script/config/config.lua')
-rw-r--r--script/config/config.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/script/config/config.lua b/script/config/config.lua
index a53f4369..1b023c04 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -305,7 +305,7 @@ function m.event(key, value, oldValue)
if not m.delay then
m.delay = {}
timer.wait(0, function ()
- local delay = {}
+ local delay = m.delay
m.delay = nil
for _, info in ipairs(delay) do
for _, callback in ipairs(m.watchList) do
@@ -331,6 +331,4 @@ function m.init()
end
end
-m.init()
-
return m