]> Pileus Git - lackey/blobdiff - views/day.c
Bug fixes
[lackey] / views / day.c
index 4c21c67817f8111d99797cdec78d971e6fc2b45c..c72b1725afdc77edb16b63d6b1cdf619438d51fa 100644 (file)
@@ -36,7 +36,7 @@ static WINDOW *body;
 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;
 }