From 2b6f43d4283e7d7c071c467010fde787a982bbae Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 26 Jan 2017 20:05:08 +0100
Subject: Lua: fix non-marking reads
---
hex.c | 3 +++
1 file changed, 3 insertions(+)
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 , ,
lua_rawgeti (L, LUA_REGISTRYINDEX, g_ctx.ref_format);
--
cgit v1.2.3-70-g09d2