summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/calcurse.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 85a7941..43189b0 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -52,8 +52,12 @@ static struct day_items_nb do_storage(int day_changed)
struct day_items_nb inday = *day_process_storage(calendar_get_slctd_day(),
day_changed, &inday);
- if (day_changed)
- apoint_hilt_set(1);
+ if (day_changed) {
+ if ((inday.nb_events + inday.nb_apoints) > 0)
+ apoint_hilt_set(1);
+ else
+ apoint_hilt_set(0);
+ }
return inday;
}