aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-27 08:02:30 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-30 14:34:36 +0200
commit47d5fe2d45688c376a9646e798ca564e6bb4a6b6 (patch)
treec48a55edb3b8d97a88c21f53264a26617a1100f0 /src/calcurse.c
parent44d3c96828a856b67f87411e4cf8c933677f6d01 (diff)
downloadcalcurse-47d5fe2d45688c376a9646e798ca564e6bb4a6b6.tar.gz
calcurse-47d5fe2d45688c376a9646e798ca564e6bb4a6b6.zip
Move apoint_{cut,paste}() to interaction unit
These functions get the current selection, call day_*_item() and fix the current selection on the appointment panel, so move them where they belong. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 3708236..ed28a30 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -287,7 +287,7 @@ int main(int argc, char **argv)
case KEY_GENERIC_CUT:
if (wins_slctd() == APP && apoint_hilt() != 0) {
- cut_item = apoint_cut(&inday.nb_events, &inday.nb_apoints);
+ cut_item = interact_day_item_cut(&inday.nb_events, &inday.nb_apoints);
inday = do_storage(0);
wins_update(FLAG_CAL | FLAG_APP);
}
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
case KEY_GENERIC_PASTE:
if (wins_slctd() == APP) {
- apoint_paste(&inday.nb_events, &inday.nb_apoints, cut_item);
+ interact_day_item_paste(&inday.nb_events, &inday.nb_apoints, cut_item);
cut_item = 0;
inday = do_storage(0);
wins_update(FLAG_CAL | FLAG_APP);