summaryrefslogtreecommitdiffstats
path: root/src/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/calendar.c')
-rw-r--r--src/calendar.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/calendar.c b/src/calendar.c
index f369d8f..dbac9c7 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -614,18 +614,18 @@ void calendar_move(enum move move, int count)
t.tm_year = slctd_day.yyyy - 1900;
switch (move) {
- case UP:
- ret = date_change(&t, 0, -count * WEEKINDAYS);
- break;
- case DOWN:
- ret = date_change(&t, 0, count * WEEKINDAYS);
- break;
- case LEFT:
+ case DAY_PREV:
ret = date_change(&t, 0, -count);
break;
- case RIGHT:
+ case DAY_NEXT:
ret = date_change(&t, 0, count);
break;
+ case WEEK_PREV:
+ ret = date_change(&t, 0, -count * WEEKINDAYS);
+ break;
+ case WEEK_NEXT:
+ ret = date_change(&t, 0, count * WEEKINDAYS);
+ break;
case WEEK_START:
/* Normalize struct tm to get week day number. */
mktime(&t);