From 13c21ac28023542a10cb75c085ce1925da2cdd0e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 7 Jul 2012 19:14:33 +0200 Subject: Merge cut/delete Remove the cut function and merge it into the del-item command. This allows for vim-style cutting/pasting. Signed-off-by: Lukas Fleischer --- src/calcurse.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index 770e967..20a06e0 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -275,7 +275,7 @@ int main(int argc, char **argv) case KEY_DEL_ITEM: if (wins_slctd() == APP && apoint_hilt() != 0) { - interact_day_item_delete(&inday.nb_events, &inday.nb_apoints); + interact_day_item_delete(&inday.nb_events, &inday.nb_apoints, reg); inday = do_storage(0); wins_update(FLAG_CAL | FLAG_APP | FLAG_STA); } else if (wins_slctd() == TOD && todo_hilt() != 0) { @@ -284,14 +284,6 @@ int main(int argc, char **argv) } break; - case KEY_GENERIC_CUT: - if (wins_slctd() == APP && apoint_hilt() != 0) { - interact_day_item_cut(&inday.nb_events, &inday.nb_apoints, reg); - inday = do_storage(0); - wins_update(FLAG_CAL | FLAG_APP); - } - break; - case KEY_GENERIC_COPY: if (wins_slctd() == APP && apoint_hilt() != 0) { interact_day_item_copy(&inday.nb_events, &inday.nb_apoints, reg); -- cgit v1.2.3-54-g00ecf