aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;