summaryrefslogtreecommitdiff
path: root/script/core/hover/table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/table.lua')
-rw-r--r--script/core/hover/table.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/script/core/hover/table.lua b/script/core/hover/table.lua
index b43151ea..9fd79a25 100644
--- a/script/core/hover/table.lua
+++ b/script/core/hover/table.lua
@@ -6,7 +6,7 @@ local lang = require 'language'
local function getKey(src)
local key = vm.getKeyName(src)
- if not key or #key <= 2 then
+ if not key or #key <= 0 then
if not src.index then
return '[any]'
end
@@ -20,9 +20,7 @@ local function getKey(src)
end
return '[any]'
end
- local ktype = key:sub(1, 2)
- key = key:sub(3)
- if ktype == 's|' then
+ if guide.getKeyType(src) == 'string' then
if key:match '^[%a_][%w_]*$' then
return key
else