summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/hover/label.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/script-beta/core/hover/label.lua b/script-beta/core/hover/label.lua
index 21330b17..e4081438 100644
--- a/script-beta/core/hover/label.lua
+++ b/script-beta/core/hover/label.lua
@@ -38,8 +38,11 @@ local function asValue(source, title)
pack[#pack+1] = name .. ':'
pack[#pack+1] = class or type
if literal then
- pack[#pack+1] = '='
- pack[#pack+1] = util.viewLiteral(literal)
+ local literalView = util.viewLiteral(literal)
+ if literalView then
+ pack[#pack+1] = '='
+ pack[#pack+1] = util.viewLiteral(literal)
+ end
end
if cont then
pack[#pack+1] = cont