summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2015-02-23 14:18:36 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2015-02-23 14:18:36 +0100
commit55bbbaeface6212dba6246717b1347888e831ff4 (patch)
treedbbf6a0ae05a8587f0adafbe4132e261152565c6 /src
parentdca7a325576ac89d56910a8ef668d6f66eba7371 (diff)
downloadcalcurse-55bbbaeface6212dba6246717b1347888e831ff4.zip
Redraw calendar panel when switching views
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/ui-calendar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c
index e3501a8..4539b86 100644
--- a/src/ui-calendar.c
+++ b/src/ui-calendar.c
@@ -87,6 +87,9 @@ void ui_calendar_view_next(void)
ui_calendar_view++;
if (ui_calendar_view == CAL_VIEWS)
ui_calendar_view = 0;
+
+ /* The calendar panel needs to be erased when switching views. */
+ monthly_view_cache_month = 0;
}
void ui_calendar_view_prev(void)
@@ -94,6 +97,9 @@ void ui_calendar_view_prev(void)
if (ui_calendar_view == 0)
ui_calendar_view = CAL_VIEWS;
ui_calendar_view--;
+
+ /* The calendar panel needs to be erased when switching views. */
+ monthly_view_cache_month = 0;
}
void ui_calendar_set_view(int view)