diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-14 20:46:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-14 20:46:44 +0800 |
commit | 64bcf0979e681f8c2f521642cf648dbf88f360a9 (patch) | |
tree | 9b07d7577573add1851f22f959040b3f370a378f /server-beta/src/core/getfield.lua | |
parent | b735bbc94ce68bd1a7b66f2f2b195e4951508d42 (diff) | |
download | lua-language-server-64bcf0979e681f8c2f521642cf648dbf88f360a9.zip |
修正bug
Diffstat (limited to 'server-beta/src/core/getfield.lua')
-rw-r--r-- | server-beta/src/core/getfield.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server-beta/src/core/getfield.lua b/server-beta/src/core/getfield.lua index 328de34a..69c8a675 100644 --- a/server-beta/src/core/getfield.lua +++ b/server-beta/src/core/getfield.lua @@ -11,8 +11,11 @@ function m:field(source, key, callback) local node = source.node used[node] = true - callback(source.field, 'get') local myKey = guide.getKeyName(source) + if key == myKey then + callback(source.field, 'get') + end + self:eachField(node, myKey, function (src, mode) if used[src] then return |