cut/paste feature aded

fixed a 2-years old bug that made repeated items with exceptions to load
uncorrectly in some cases (thanks Jan for reporting it)
This commit is contained in:
Frederic Culot
2009-01-01 17:50:41 +00:00
parent 8fdd1510c6
commit cac30a7e14
16 changed files with 787 additions and 178 deletions

View File

@@ -1,4 +1,4 @@
/* $calcurse: calcurse.c,v 1.75 2008/12/28 19:41:45 culot Exp $ */
/* $calcurse: calcurse.c,v 1.76 2009/01/01 17:50:41 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -332,6 +332,22 @@ main (int argc, char **argv)
do_storage = true;
break;
case KEY_GENERIC_CUT:
if (wins_slctd () == APP && apoint_hilt () != 0)
{
apoint_cut (&inday.nb_events, &inday.nb_apoints);
do_storage = true;
}
break;
case KEY_GENERIC_PASTE:
if (wins_slctd () == APP)
{
apoint_paste (&inday.nb_events, &inday.nb_apoints);
do_storage = true;
}
break;
case KEY_REPEAT_ITEM:
if (wins_slctd () == APP && apoint_hilt () != 0)
recur_repeat_item (&conf);