diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-09 01:54:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-09 01:55:07 +0800 |
commit | 52847c66b6cdf310176056617806867eae23571e (patch) | |
tree | f14982b790b1524c199df288c0d4227bcd0e49d3 | |
parent | 274de6ccd46ec6c589c799dea86a49b8c87b6df2 (diff) | |
download | lua-language-server-52847c66b6cdf310176056617806867eae23571e.zip |
fix
-rw-r--r-- | script/vm/ref.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/ref.lua b/script/vm/ref.lua index 51fd38bc..f7f1a6d1 100644 --- a/script/vm/ref.lua +++ b/script/vm/ref.lua @@ -160,11 +160,11 @@ local function searchField(source, pushResult, defMap, fileNotify) end ---@async -local function searchFunction(source, pushResult, fileNotify) +local function searchFunction(source, pushResult, defMap, fileNotify) ---@param src parser.object local function checkDef(src) for _, def in ipairs(vm.getDefs(src)) do - if def == source then + if defMap[def] then pushResult(src) return end |