diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-09-29 16:22:07 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-06 12:37:06 +0200 |
commit | 2d5ce0d95c50003074943eaa05b3c35255286279 (patch) | |
tree | 55d8b66076ef2a7e354aceb29e0fbad9c136d934 /src/calcurse.c | |
parent | 6bdc36b15a15c98bbb33582908740346675485cc (diff) | |
download | calcurse-2d5ce0d95c50003074943eaa05b3c35255286279.zip |
src/calendar.c: Add a count parameter to calendar_move()
Allows for moving more than one step forward/backward.
This is not used anywhere yet but a key binding will likely be added in
one of the following patches.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 2540a1f..05d8f6a 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -478,7 +478,7 @@ main (int argc, char **argv) case KEY_MOVE_RIGHT: if (wins_slctd () == CAL || key == KEY_GENERIC_NEXT_DAY) { - calendar_move (RIGHT); + calendar_move (RIGHT, 1); inday = do_storage (1); wins_update (FLAG_CAL | FLAG_APP); } @@ -488,7 +488,7 @@ main (int argc, char **argv) case KEY_MOVE_LEFT: if (wins_slctd () == CAL || key == KEY_GENERIC_PREV_DAY) { - calendar_move (LEFT); + calendar_move (LEFT, 1); inday = do_storage (1); wins_update (FLAG_CAL | FLAG_APP); } @@ -498,7 +498,7 @@ main (int argc, char **argv) case KEY_MOVE_UP: if (wins_slctd () == CAL || key == KEY_GENERIC_PREV_WEEK) { - calendar_move (UP); + calendar_move (UP, 1); inday = do_storage (1); wins_update (FLAG_CAL | FLAG_APP); } @@ -521,7 +521,7 @@ main (int argc, char **argv) case KEY_MOVE_DOWN: if (wins_slctd () == CAL || key == KEY_GENERIC_NEXT_WEEK) { - calendar_move (DOWN); + calendar_move (DOWN, 1); inday = do_storage (1); wins_update (FLAG_CAL | FLAG_APP); } @@ -544,7 +544,7 @@ main (int argc, char **argv) case KEY_START_OF_WEEK: if (wins_slctd () == CAL) { - calendar_move (WEEK_START); + calendar_move (WEEK_START, 1); inday = do_storage (1); wins_update (FLAG_CAL | FLAG_APP); } @@ -553,7 +553,7 @@ main (int argc, char **argv) case KEY_END_OF_WEEK: if (wins_slctd () == CAL) { - calendar_move (WEEK_END); + calendar_move (WEEK_END, 1); inday = do_storage (1); wins_update (FLAG_CAL | FLAG_APP); } |