about summary refs log tree commit diff stats
path: root/src/lcurseslib.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-13 21:17:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 21:23:14 -0800
commit88f4b1bb2bdafe1994f9f025cadb422e8c1e78f3 (patch)
treea97d083dbb6cb410ac6290c7444aad4f76a8f457 /src/lcurseslib.c
parent90f86daf1ce433d661abcc9885e1f93c4e7a5a8c (diff)
downloadteliva-88f4b1bb2bdafe1994f9f025cadb422e8c1e78f3.tar.gz
.
Diffstat (limited to 'src/lcurseslib.c')
-rw-r--r--src/lcurseslib.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index 32d232b..4d3284c 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -9,9 +9,8 @@
 #include "lauxlib.h"
 #include "lualib.h"
 
-static void cleanup(void) {
-  if (!isendwin())
-  {
+static void cleanup (void) {
+  if (!isendwin()) {
     wclear(stdscr);
     wrefresh(stdscr);
     endwin();
@@ -20,7 +19,7 @@ static void cleanup(void) {
 
 
 int menu_column = 0;
-static void draw_string_on_menu(const char* s) {
+static void draw_string_on_menu (const char* s) {
   mvaddstr(LINES-1, menu_column, " ");
   ++menu_column;
   mvaddstr(LINES-1, menu_column, s);
@@ -28,7 +27,7 @@ static void draw_string_on_menu(const char* s) {
   mvaddstr(LINES-1, menu_column, " ");
   ++menu_column;
 }
-void draw_menu_item(const char* key, const char* name) {
+void draw_menu_item (const char* key, const char* name) {
   attroff(A_REVERSE);
   draw_string_on_menu(key);
   attron(A_REVERSE);
@@ -113,7 +112,7 @@ static int Pcolor_pair (lua_State *L)
 }
 
 
-extern void switch_to_editor(lua_State *L, const char *message);
+extern void switch_to_editor (lua_State *L, const char *message);
 static int Pgetch (lua_State *L) {
   int c = wgetch(stdscr);
   if (c == ERR)
@@ -296,7 +295,7 @@ static const luaL_Reg curses_window_methods[] =
 };
 
 
-static void register_curses_constant(lua_State *L, const char* name, int val) {
+static void register_curses_constant (lua_State *L, const char* name, int val) {
   lua_pushstring(L, name);
   lua_pushinteger(L, val);
   lua_settable(L, -3);