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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index 4bdbee1..d9bcd37 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -88,13 +88,16 @@ static int Pcolor_pair (lua_State *L)
 }
 
 
+extern const char *Script_name;
 static int Pgetch (lua_State *L) {
   int c = wgetch(stdscr);
   if (c == ERR)
     return 0;
   if (c == 24)  /* ctrl-x */
     exit(0);
-  /* TODO: handle other standard menu hotkeys here */
+  if (c == 5)  /* ctrl-e */
+    edit(Script_name);
+  /* handle other standard menu hotkeys here */
   lua_pushinteger(L, c);
   return 1;
 }