summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-09 01:54:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-09 01:55:07 +0800
commit52847c66b6cdf310176056617806867eae23571e (patch)
treef14982b790b1524c199df288c0d4227bcd0e49d3 /script
parent274de6ccd46ec6c589c799dea86a49b8c87b6df2 (diff)
downloadlua-language-server-52847c66b6cdf310176056617806867eae23571e.zip
fix
Diffstat (limited to 'script')
-rw-r--r--script/vm/ref.lua4
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