From 47d5fe2d45688c376a9646e798ca564e6bb4a6b6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 27 Jun 2012 08:02:30 +0200 Subject: 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 --- src/calcurse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/calcurse.c') 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); -- cgit v1.2.3-54-g00ecf