aboutsummaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
Diffstat (limited to 'hex.c')
-rw-r--r--hex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hex.c b/hex.c
index 532b539..ea09f04 100644
--- a/hex.c
+++ b/hex.c
@@ -1099,7 +1099,10 @@ app_lua_chunk_finish_read
{
int n_args = lua_gettop (L) - 1;
if (n_args < 2)
+ {
+ self->position += len;
return;
+ }
// Prepare <string.format>, <format>, <value>
lua_rawgeti (L, LUA_REGISTRYINDEX, g_ctx.ref_format);