From b62c4c1c6c3f146f52b70e4f9029ab99dd4dfe1e Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 9 Oct 2017 14:01:29 +0200 Subject: [PATCH] Improved the function upvalue situation margially. --- function.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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.