{ "Help", help_init, help_size, help_draw, help_run, {KEY_F(8), '8', '?'} },
};
-int active = 6;
+int active = 0;
/* Local functions */
static void draw_header(void)
if (color) wattroff(win, COLOR_PAIR(color));
if (full) {
- mvwprintw(win, y, x, " %02d:%02d - ", event->start.hour, event->start.min);
- x += 9;
+ mvwprintw(win, y, x, " %2d:%02d-%2d:%02d -",
+ event->start.hour, event->start.min,
+ event->end.hour, event->end.min);
+ x += 15;
}
if (event->name) {
const char *label = event->name ?: event->desc;
static void clear_old(event_t **list, int n, event_t *cur)
{
for (int i = 0; i < n; i++)
- if (list[i] && compare(&list[i]->end, &cur->start) < 0)
+ if (list[i] && compare(&list[i]->end, &cur->start) <= 0)
list[i] = NULL;
}
static int show_new = 1;
static int show_started = 1;
-static int show_finished = 1;
+static int show_finished = 0;
/* Helper functions */
static int print_todos(WINDOW *win, int row, todo_t *todos, status_t low, status_t high)