diff options
-rw-r--r-- | server/src/core/completion.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 85f0b95e..027f7faa 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -217,7 +217,6 @@ local function searchFields(vm, source, word, callback) local map = {} parent:eachInfo(function (info, src) local k = info[1] - local v = info[2] if src == source then return end @@ -230,11 +229,12 @@ local function searchFields(vm, source, word, callback) if type(k) ~= 'string' then return end + local v = parent:getChild(k) if source:get 'object' and v:getType() ~= 'function' then return end if matchKey(word, k) then - map[k] = parent:getChild(k) + map[k] = v end end) parent:eachLibChild(function (k, v) |