From 7772b6d74da4513467af97c4f6d33088c55b3874 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 7 Sep 2007 19:37:00 -0500 Subject: actually return things here --- src/curses.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/curses.c b/src/curses.c index 95c4303..5be65d1 100644 --- a/src/curses.c +++ b/src/curses.c @@ -277,10 +277,10 @@ static int l_addstr(lua_State* L) p = get_pos(L); str = luaL_checklstring(L, 2, &l); if (l == 1) { - mvaddch(p.y, p.x, *str); + lua_pushboolean(L, mvaddch(p.y, p.x, *str) == OK); } else { - mvaddstr(p.y, p.x, str); + lua_pushboolean(L, mvaddstr(p.y, p.x, str) == OK); } } else { @@ -289,10 +289,10 @@ static int l_addstr(lua_State* L) str = luaL_checklstring(L, 1, &l); if (l == 1) { - addch(*str); + lua_pushboolean(L, addch(*str) == OK); } else { - addstr(str); + lua_pushboolean(L, addstr(str) == OK); } } -- cgit v1.2.3-54-g00ecf