Skip to content

Commit

Permalink
not sure why i was checking errno here...
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Mar 19, 2008
1 parent c814026 commit 7f09f51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/curses.c
Expand Up @@ -2,7 +2,6 @@
#include <curses.h>
#include <lua.h>
#include <lauxlib.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>

Expand Down Expand Up @@ -426,8 +425,7 @@ static int l_getch(lua_State* L)
}
if (c == ERR) {
lua_pushboolean(L, 0);
lua_pushstring(L, strerror(errno));
return 2;
return 1;
}

key_name = get_key_str(c);
Expand Down

0 comments on commit 7f09f51

Please sign in to comment.