From 43e0d5819011e069893ee9f05eba2fc90d1b4bf5 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 2 Apr 2019 16:11:21 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/completion.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/core') 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) -- cgit v1.2.3