diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-26 21:50:53 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-26 21:50:53 -0800 |
commit | 2426fe7a79028e427403bcdddd006b0ee9d50b60 (patch) | |
tree | 08c01166ae82ea77ee26faff48782d1a16be476c /src | |
parent | 7e86f6d123b11e83feb061f2c63670c8a1a69b0b (diff) | |
download | teliva-2426fe7a79028e427403bcdddd006b0ee9d50b60.tar.gz |
standardize indent
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua.c b/src/lua.c index f931266..4f5e2ca 100644 --- a/src/lua.c +++ b/src/lua.c @@ -550,13 +550,13 @@ static void recent_changes_menu (int cursor, int history_array_size) { void render_recent_changes (lua_State *L, int history_array, int start_index, int history_array_size) { clear(); attrset(A_BOLD); - mvaddstr(1, 1, "Recent changes"); + mvaddstr(1, 0, "Recent changes"); attrset(A_NORMAL); int y = 3; attron(A_REVERSE); for (int i = start_index; i > 0; --i) { attron(A_BOLD); - mvprintw(y, 1, "%3d. ", i); + mvprintw(y, 0, "%3d. ", i); attrset(A_NORMAL); lua_rawgeti(L, history_array, i); int t = lua_gettop(L); @@ -589,7 +589,7 @@ void render_recent_changes (lua_State *L, int history_array, int start_index, in lua_pop(L, 1); y++; const char *definition_contents = lua_tostring(L, -1); - int x = 1; + int x = 0; move(y, x); for (int j = 0; j < strlen(definition_contents); ++j) { char c = definition_contents[j]; @@ -602,7 +602,7 @@ void render_recent_changes (lua_State *L, int history_array, int start_index, in else { /* newline */ ++y; - x = 1; + x = 0; move(y, x); attroff(FG(6)); } |