about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua.c2
1 files changed, 1 insertions, 1 deletions
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);