diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-04 09:34:48 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-06 01:56:42 +0200 |
commit | 352887887fb187a6f4d644070f45a62d03e2fdf4 (patch) | |
tree | b5429ec902f4f6d6074c69ce2931876076551ccd /src/interaction.c | |
parent | 3b259b56207e6334eb4ec98f7c17d6b11cf15b85 (diff) | |
download | calcurse-352887887fb187a6f4d644070f45a62d03e2fdf4.zip |
Duplicate items when pasting
This allows pasting items more than once.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/interaction.c')
-rw-r--r-- | src/interaction.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interaction.c b/src/interaction.c index feff4d8..d3f2cef 100644 --- a/src/interaction.c +++ b/src/interaction.c @@ -930,12 +930,13 @@ void interact_day_item_cut(unsigned *nb_events, unsigned *nb_apoints) void interact_day_item_paste(unsigned *nb_events, unsigned *nb_apoints) { int item_type; + struct day_item day; if (!day_cut.type) return; - item_type = day_paste_item(&day_cut, calendar_get_slctd_day_sec()); - day_cut.type = 0; + day_item_fork(&day_cut, &day); + item_type = day_paste_item(&day, calendar_get_slctd_day_sec()); calendar_monthly_view_cache_set_invalid(); |