summaryrefslogtreecommitdiff
path: root/server/src/matcher/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/hover.lua')
-rw-r--r--server/src/matcher/hover.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index 911cf964..e5ec1918 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -360,12 +360,7 @@ local function getValueHover(name, valueType, result, source, lib)
]]):format(text, tip)
end
-return function (vm, pos)
- local result, source = findResult(vm, pos)
- if not result then
- return nil
- end
-
+return function (vm, result, source)
if not result.value then
return
end