From cac30a7e1469a8f061f64712dbea100a012dd788 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Thu, 1 Jan 2009 17:50:41 +0000 Subject: 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) --- src/calcurse.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index fb2db0f..e2d398b 100755 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -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); -- cgit v1.2.3-54-g00ecf