summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/hover.lua')
-rw-r--r--server/src/method/textDocument/hover.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/method/textDocument/hover.lua b/server/src/method/textDocument/hover.lua
index 5dea17cb..5bb8cbb9 100644
--- a/server/src/method/textDocument/hover.lua
+++ b/server/src/method/textDocument/hover.lua
@@ -9,12 +9,12 @@ return function (lsp, params)
-- lua是从1开始的,因此都要+1
local position = lines:position(params.position.line + 1, params.position.character + 1)
- local result, source = core.findSource(vm, position)
- if not result then
+ local source = core.findSource(vm, position)
+ if not source then
return nil
end
- local hover = core.hover(result, source, lsp)
+ local hover = core.hover(source, lsp)
if not hover then
return nil
end