diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/core/hover/name.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/script/core/hover/name.lua b/script/core/hover/name.lua index 9ad32e09..0e1eefaf 100644 --- a/script/core/hover/name.lua +++ b/script/core/hover/name.lua @@ -65,11 +65,13 @@ function buildName(source, oop) oop = source.type == 'setmethod' or source.type == 'getmethod' end - if source.type == 'local' - or source.type == 'getlocal' - or source.type == 'setlocal' then + if source.type == 'local' then return asLocal(source) or '' end + if source.type == 'getlocal' + or source.type == 'setlocal' then + return asLocal(source.node) or '' + end if source.type == 'setglobal' or source.type == 'getglobal' then return asGlobal(source) or '' |