diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-09 19:45:38 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-09 19:45:43 -0700 |
| commit | ab8ccf4e274d7a4fbb5d95e0fc20b71bafbc98dc (patch) | |
| tree | 17c5c0e4e70e74905cc9467398502f80959d9fc6 /nomsu.moon | |
| parent | d42d20c50ae0443e2ac5ffa6492ad57745e27830 (diff) | |
Off by one error.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1109,7 +1109,7 @@ if arg and debug_getinfo(2).func != require info.short_src, info.linedefined = filename, line_no info.currentline = line_no if type(select(1, ...)) == 'number' - varname, callsite = debug.getlocal(select(1,...), 1) + varname, callsite = debug.getlocal(select(1,...)-1, 1) if varname == "__callsite" info.short_src, info.currentline = callsite\match("^(.*):(%d+)$") info.currentline = tonumber(info.currentline) |
