summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 205be08c..44805130 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -317,7 +317,7 @@ m.register 'textDocument/hover' {
end
local pos = converter.unpackPosition(uri, params.position)
local hover, source = core.byUri(uri, pos)
- if not hover then
+ if not hover or not source then
return nil
end
return {