about summary refs log tree commit diff stats
path: root/src/lcurses
diff options
context:
space:
mode:
Diffstat (limited to 'src/lcurses')
-rw-r--r--src/lcurses/compat-5.2.c2
-rw-r--r--src/lcurses/window.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lcurses/compat-5.2.c b/src/lcurses/compat-5.2.c
index 89eb73b..bdbd8a4 100644
--- a/src/lcurses/compat-5.2.c
+++ b/src/lcurses/compat-5.2.c
@@ -530,7 +530,7 @@ void lua_len (lua_State *L, int i) {
     case LUA_TUSERDATA:
       if (luaL_callmeta(L, i, "__len"))
         break;
-      /* maybe fall through */
+    /* maybe fall through */
     default:
       luaL_error(L, "attempt to get length of a %s value",
                  lua_typename(L, lua_type(L, i)));
diff --git a/src/lcurses/window.c b/src/lcurses/window.c
index 9c243ea..82d8dfe 100644
--- a/src/lcurses/window.c
+++ b/src/lcurses/window.c
@@ -1304,7 +1304,7 @@ Read a character from the window input.
 @see curses.echo
 @see keypad
 */
-extern void switch_to_editor (lua_State *L, const char *message);
+extern void switch_to_editor (lua_State *L);
 static int
 Wgetch(lua_State *L)
 {
@@ -1316,7 +1316,7 @@ Wgetch(lua_State *L)
 	if (c == 24)  /* ctrl-x */
 		exit(0);
 	if (c == 5)  /* ctrl-e */
-		switch_to_editor(L, "");
+		switch_to_editor(L);
 	/* handle other standard menu hotkeys here */
 
 	return pushintresult(c);