aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-04-04 22:51:28 +0100
committerdam <dam@gudinoff>2023-04-04 22:51:28 +0100
commit27fc71a32cc474d7e657d2731e2f2308c9a4d8e3 (patch)
tree073c62053515176ebeb420ac5ea4ae722f7d3c40 /ttt.jai
parent98a21ce9edcd22bf7a9dde62f317f143e289ecf5 (diff)
downloadtask-time-tracker-27fc71a32cc474d7e657d2731e2f2308c9a4d8e3.tar.zst
task-time-tracker-27fc71a32cc474d7e657d2731e2f2308c9a4d8e3.zip
Fixed KEY_* values which were octal but I assumed decimals.
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 :: () {