about summary refs log tree commit diff stats
path: root/src/lcurseslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lcurseslib.c')
-rw-r--r--src/lcurseslib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index 515c30c..90755c3 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -100,6 +100,7 @@ static int Pgetch (lua_State *L) {
     exit(0);
   if (c == 5) {  /* ctrl-e */
     /* death and rebirth */
+    endwin();
     edit(Script_name);
     execv(Argv[0], Argv);
   }