summaryrefslogtreecommitdiff
path: root/script-beta/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-05 18:04:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-05 18:04:27 +0800
commit61304827140ac8940e74ce9876c772d021cc926a (patch)
tree32508a8c8b1c1200a3c0629e46af3af59cb1b8fe /script-beta/core/hover
parent14f38cf2671ce044dd2ee752b3d66dbbaf7b83aa (diff)
downloadlua-language-server-61304827140ac8940e74ce9876c772d021cc926a.zip
修正报错
Diffstat (limited to 'script-beta/core/hover')
-rw-r--r--script-beta/core/hover/table.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua
index dba70860..72af66e7 100644
--- a/script-beta/core/hover/table.lua
+++ b/script-beta/core/hover/table.lua
@@ -46,6 +46,9 @@ local function mergeLiteral(a, b)
return b
end
local view = util.viewLiteral(a)
+ if not view then
+ return b
+ end
if not b then
return { view, [view] = true }
end