summaryrefslogtreecommitdiff
path: root/server/src/matcher/signature.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/signature.lua')
-rw-r--r--server/src/matcher/signature.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/src/matcher/signature.lua b/server/src/matcher/signature.lua
index 60316a5f..159fde80 100644
--- a/server/src/matcher/signature.lua
+++ b/server/src/matcher/signature.lua
@@ -20,7 +20,7 @@ end
local function findDirtyCall(vm, pos)
local results = {}
for _, call in ipairs(vm.results.calls) do
- if call.args.dirty and isContainPos(call.args, pos) then
+ if isContainPos(call.args, pos) then
local n = findArgCount(call.args, pos)
results[#results+1] = {
func = call.func,
@@ -45,8 +45,12 @@ return function (vm, pos)
end
local hovers = {}
- for i, call in ipairs(calls) do
- hovers[i] = hover(call.var, call.source, nil, call.select)
+ for _, call in ipairs(calls) do
+ hovers[#hovers+1] = hover(call.var, call.source, nil, call.select)
+ end
+
+ if #hovers == 0 then
+ return nil
end
return hovers