diff options
Diffstat (limited to 'script-beta/core/hover/name.lua')
-rw-r--r-- | script-beta/core/hover/name.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index 230de253..e5bd6f66 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -17,12 +17,12 @@ local function asLocal(source) end local function asField(source, oop) - local class = vm.getClass(source.node, 'deep') + local class + if source.node.type ~= 'getglobal' then + class = vm.getClass(source.node, 'deep') + end local node = class or guide.getName(source.node) or '?' local method = guide.getName(source) - if node:sub(-1) == '*' then - node = node:sub(1, -2) - end if oop then return ('%s:%s'):format(node, method) else |