about summary refs log tree commit diff stats
path: root/src/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua.c b/src/lua.c
index 2c88fe5..d3eb29e 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -513,6 +513,7 @@ int big_picture (lua_State *L) {
       lua_pop(L, 1);  // value
       // leave key on stack for next iteration
     }
+    lua_pop(L, 1);  // history element
   }
 
   // second: menu and other userdata
@@ -532,6 +533,7 @@ int big_picture (lua_State *L) {
       lua_pop(L, 1);  // value
       // leave key on stack for next iteration
     }
+    lua_pop(L, 1);  // history element
   }
 
   // functions by level
@@ -553,6 +555,7 @@ int big_picture (lua_State *L) {
         lua_pop(L, 1);  // value
         // leave key on stack for next iteration
       }
+      lua_pop(L, 1);  // history element
     }
     y += 2;
   }
@@ -574,6 +577,7 @@ int big_picture (lua_State *L) {
       lua_pop(L, 1);  // value
       // leave key on stack for next iteration
     }
+    lua_pop(L, 1);  // history element
   }
 
   lua_settop(L, 0);