aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai8
1 files changed, 4 insertions, 4 deletions
diff --git a/ttt.jai b/ttt.jai
index b5fb59d..8f4b801 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -1069,8 +1069,9 @@ draw_tui :: (db: *Database, layout: *Layout) {
// Draw table grids.
y = 0;
x = 0;
- for layout.columns {
- x += 1 + it.width;
+ for 0..layout.columns.count-2 {
+ column := layout.columns[it];
+ x += 1 + column.width;
mvaddch(xx y, xx x, ACS_TTEE);
for row: 1..size_y-1 {
mvaddch(xx row, xx x, ACS_VLINE);
@@ -1515,7 +1516,7 @@ main :: () {
}
// When terminal is resized.
- case KEY_RESIZE; // BUG KEY_RESIZE is not happening.
+ case KEY_RESIZE;
clear();
getmaxyx(stdscr, *size_y, *size_x);
is_terminal_too_small = size_x < 60 || size_y < 3;
@@ -1889,7 +1890,6 @@ main :: () {
exit(xx ifx error_saving then 1 else 0);
}
-
/*
main :: () {