diff options
| -rw-r--r-- | lvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.121 2000/08/08 18:26:05 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.122 2000/08/08 20:42:07 roberto Exp roberto $ |
| 3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -75,6 +75,7 @@ static void traceexec (lua_State *L, StkId base, StkId top, lua_Hook linehook) { | |||
| 75 | if (ci->line == 0) { /* first time? */ | 75 | if (ci->line == 0) { /* first time? */ |
| 76 | ci->line = 1; | 76 | ci->line = 1; |
| 77 | ci->refi = 0; | 77 | ci->refi = 0; |
| 78 | ci->lastpc = pc+1; /* make sure it will call linehook */ | ||
| 78 | } | 79 | } |
| 79 | newline = luaG_getline(lineinfo, pc, ci->line, &ci->refi); | 80 | newline = luaG_getline(lineinfo, pc, ci->line, &ci->refi); |
| 80 | /* calls linehook when enters a new line or jumps back (loop) */ | 81 | /* calls linehook when enters a new line or jumps back (loop) */ |
