author | Kim Alvefur <zash@zash.se> |
Fri, 09 Oct 2020 17:34:04 +0200 | |
changeset 11153 | 28add4b22a74 |
parent 11152 | 1dc49accb58e |
child 11154 | 0cfa36fa707e |
util/startup.lua | file | annotate | diff | comparison | revisions |
--- a/util/startup.lua Fri Oct 09 16:37:15 2020 +0200 +++ b/util/startup.lua Fri Oct 09 17:34:04 2020 +0200 @@ -197,7 +197,7 @@ end end function mt.__tostring(f) - local info = debug.getinfo(f); + local info = debug.getinfo(f, "S"); return ("function(%s:%d)"):format(info.short_src:match("[^\\/]*$"), info.linedefined); end debug.setmetatable(function() end, mt);