about summary refs log tree commit diff stats
path: root/src/lua.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-13 22:48:59 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 22:48:59 -0800
commit0e74056cbbda0c49ec852d4d98e32e0a8565be18 (patch)
treeebfe3a93c21c16b2c32b5d2d7393d068a3ffcac9 /src/lua.c
parente990682fb2cd4ab4c3ef8e96231df387a53be0c5 (diff)
downloadteliva-0e74056cbbda0c49ec852d4d98e32e0a8565be18.tar.gz
.
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua.c b/src/lua.c
index 84448b7..2d8c5fd 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -399,6 +399,7 @@ void browseImage (lua_State *L) {
     ++y;
     lua_pop(L, 1);  // pop value, leave key on stack for next iteration
   }
+  lua_settop(L, 0);
   mvaddstr(LINES-1, 0, "edit what? ");
   char definition[64] = {0};
   getnstr(definition, 60);