diff options
Diffstat (limited to 'src/lua.c')
-rw-r--r-- | src/lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c index 9690184..d7939bf 100644 --- a/src/lua.c +++ b/src/lua.c @@ -566,6 +566,7 @@ static int pmain (lua_State *L) { extern void draw_menu (lua_State *); +extern void cleanup_curses (void); int main (int argc, char **argv) { @@ -589,7 +590,7 @@ int main (int argc, char **argv) { status = lua_cpcall(L, &pmain, &s); report(L, status); lua_close(L); - endwin(); + cleanup_curses(); return (status || s.status) ? EXIT_FAILURE : EXIT_SUCCESS; } |