From 1e911f95ef0426a6f36519db8d0f8e39a4424008 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 26 Nov 2021 22:03:47 -0800 Subject: bugfix: emit legal Lua representation --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua.c b/src/lua.c index 615f92c..7930845 100644 --- a/src/lua.c +++ b/src/lua.c @@ -454,7 +454,7 @@ static void save_image (lua_State *L) { for (lua_pushnil(L); lua_next(L, table) != 0; lua_pop(L, 1)) { const char* key = lua_tostring(L, -2); if (strcmp(key, "__teliva_undo") == 0) { - fprintf(out, " %s = %ld\n", key, lua_tointeger(L, -1)); + fprintf(out, " %s = %ld,\n", key, lua_tointeger(L, -1)); continue; } const char* value = lua_tostring(L, -1); -- cgit 1.4.1-2-gfad0