diff --git a/function.lua b/function.lua index fb3380b..8d19f87 100644 --- a/function.lua +++ b/function.lua @@ -361,8 +361,14 @@ return function (value, display, l, format_value) -- upvalues if info.nups > 0 and (not info.builtin and not info.docs) then l[#l+1] = indent - l[#l+1] = '-- Up values: ' - format_value(info.ups, DISPLAY.INLINE, l) + l[#l+1] = '-- Up values:' + for up_name, up_value in pairs(info.ups) do + l[#l+1] = indent + l[#l+1] = '-- ' + l[#l+1] = up_name + l[#l+1] = ' = ' + format_value(up_value, DISPLAY.HIDE, l) + end end -- Ignore spacing and function body if it's a Λ string.