aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-04-18 17:25:40 +0100
committerdam <dam@gudinoff>2023-04-18 17:25:40 +0100
commitfde8632915efd5c0f3233c65ea4e1d9191023b0f (patch)
tree3d38353f13924c5325870e42cb6f79cec311e092 /ttt.jai
parent36c91454f2c5678bb648c23bcbc58feb12a006f7 (diff)
downloadtask-time-tracker-fde8632915efd5c0f3233c65ea4e1d9191023b0f.tar.zst
task-time-tracker-fde8632915efd5c0f3233c65ea4e1d9191023b0f.zip
Fix print of task names on LLVM.
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai6
1 files changed, 3 insertions, 3 deletions
diff --git a/ttt.jai b/ttt.jai
index 68e4e50..5c8e950 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -1013,7 +1013,7 @@ draw_tui :: (db: *Database, layout: *Layout) {
// Display up to rows allowed by the layout, or less if reached end of database.
idx_stop := idx_start + (ifx layout_tasks_rows > db.tasks.count - idx_start then db.tasks.count - idx_start else layout_tasks_rows);
for task_idx: idx_start..idx_stop-1 {
- //for (size_t idx = idx_start; idx < idx_stop; idx++) {
+ auto_release_temp(); // TODO Temporary memory being trashed?!
task := *db.tasks[task_idx];
y += 1;
x = 0;
@@ -1032,7 +1032,7 @@ draw_tui :: (db: *Database, layout: *Layout) {
// Task title.
x += 1;
column_width = layout.columns[L_TITLE_IDX].width;
- mvprintw(xx y, xx x, "%-*.*s", column_width, column_width, task.name);
+ mvprintw(xx y, xx x, "%-*.*s", column_width, column_width, temp_c_string(xx task.name)); //task.name); TODO Fix required for LLVM/Cncurses.
x += column_width;
// Task times.
@@ -1354,7 +1354,7 @@ main :: () {
update_times(*database);
timeout(INPUT_AWAIT_INF);
- // TODO WIP Remove `selected_task` and `active_task` and helper functions.
+ // TODO WIP Remove `selected_task` and `active_task` and helper functions.
selected_task := get_selected_task(db);
active_task := get_active_task(db);
action_style: s32;