From 27fc71a32cc474d7e657d2731e2f2308c9a4d8e3 Mon Sep 17 00:00:00 2001 From: dam Date: Tue, 4 Apr 2023 22:51:28 +0100 Subject: Fixed KEY_* values which were octal but I assumed decimals. --- ttt.jai | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ttt.jai') 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 :: () { -- cgit v1.2.3