diff options
author | Frederic Culot <calcurse@culot.org> | 2009-01-01 17:50:41 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-01-01 17:50:41 +0000 |
commit | cac30a7e1469a8f061f64712dbea100a012dd788 (patch) | |
tree | 0e38d019b5071df73555b541ec2ce8e84fa2b9c5 /src/calcurse.c | |
parent | 8fdd1510c68644184c3df9ba002092a41364b482 (diff) | |
download | calcurse-cac30a7e1469a8f061f64712dbea100a012dd788.zip |
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)
Diffstat (limited to 'src/calcurse.c')
-rwxr-xr-x | src/calcurse.c | 18 |
1 files changed, 17 insertions, 1 deletions
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); |