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:14 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 22:48:14 -0800
commite990682fb2cd4ab4c3ef8e96231df387a53be0c5 (patch)
treec3a98b94d81d0c32e8d1c8fb6010dfb68ab18b8a /src/lua.c
parent55302fd877a424de1f40e37adcd231982bd2c3a1 (diff)
downloadteliva-e990682fb2cd4ab4c3ef8e96231df387a53be0c5.tar.gz
.
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lua.c b/src/lua.c
index f187015..84448b7 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -399,10 +399,7 @@ void browseImage (lua_State *L) {
     ++y;
     lua_pop(L, 1);  // pop value, leave key on stack for next iteration
   }
-  int maxy, maxx;
-  getmaxyx(stdscr, maxy, maxx);
-  (void)maxx;  // unused
-  mvaddstr(maxy-1, 0, "edit what? ");
+  mvaddstr(LINES-1, 0, "edit what? ");
   char definition[64] = {0};
   getnstr(definition, 60);
   editImage(L, definition);