about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-05 13:08:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-11-05 13:08:12 -0700
commita7351c723e645548765f1f5d7ca8a151dd2de1a4 (patch)
tree1fcae492de4da5c26486ad054c9fd1e7f97ebca4 /src
parent13784eb757f69eba9071ace9fc245746323cc5a1 (diff)
downloadteliva-a7351c723e645548765f1f5d7ca8a151dd2de1a4.tar.gz
grouping
Diffstat (limited to 'src')
-rw-r--r--src/lcurseslib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index 4704003..4e96a53 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -193,12 +193,16 @@ static const luaL_Reg curses_window_methods[] =
 
 LUALIB_API int luaopen_curses (lua_State *L) {
   luaL_newmetatable(L, "curses:window");
+
   /* metatable.__index = metatable */
   lua_pushstring(L, "__index");
   lua_pushvalue(L, -2);
   lua_settable(L, -3);
+
   luaL_register(L, NULL, curses_window_methods);
+
   luaL_register(L, "curses", curseslib);
+
   /* save main window on registry */
   curses_newwin(L, stdscr);
   lua_pushstring(L, "curses:stdscr");