diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-27 08:52:42 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-30 14:34:36 +0200 |
commit | 6907ae73e76d11c201ff237663af79b3bbfc5385 (patch) | |
tree | 3863be2f3c8b31f7a0c138debc3e5927f9b06acd /src/utils.c | |
parent | b230e2949ef888010c133e4b6f7690f2e1ed2c09 (diff) | |
download | calcurse-6907ae73e76d11c201ff237663af79b3bbfc5385.zip |
Revise cut/pasting
Instead of calling type-specific duplication handlers and inserting
clones of the original items when pasting, save the generic day item and
remove the actual item from the linked list, so that it can be inserted
anywhere else later.
The cut/paste buffer is moved to the interaction unit, item-specific cut
operations are changed to remove the item from the linked list only
instead of copying and freeing it. An item is only freed if another item
is cut before the current cut/paste buffer is pasted. All paste
operations are changed and reinsert the actual item instead of creating
a clone.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c index a4780b5..1823321 100644 --- a/src/utils.c +++ b/src/utils.c @@ -99,13 +99,10 @@ void free_user_data(void) { day_free_list(); event_llist_free(); - event_free_bkp(); apoint_llist_free(); - apoint_free_bkp(); recur_apoint_llist_free(); recur_event_llist_free(); - recur_apoint_free_bkp(); - recur_event_free_bkp(); + interact_day_item_cut_free(); todo_free_list(); notify_free_app(); } |