diff options
Diffstat (limited to 'script-beta/core/hover/name.lua')
-rw-r--r-- | script-beta/core/hover/name.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index 83c750c3..3d855ee5 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -27,12 +27,13 @@ local function asGlobal(source) return guide.getName(source) end +local function asLibrary(source) + return source.doc or source.name +end + local function buildName(source) - if source.doc then - return source.doc - end - if source.name then - return source.name + if source.library then + return asLibrary(source) or '' end if source.type == 'local' or source.type == 'getlocal' |