aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-07-07 19:14:33 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-07-07 21:39:35 +0200
commit13c21ac28023542a10cb75c085ce1925da2cdd0e (patch)
tree5d81c830a1d476d9d150ff6da03d968d6a5a3e61 /src/calcurse.c
parent88588ad704329939834b45eb2058fb48f0a5068f (diff)
downloadcalcurse-13c21ac28023542a10cb75c085ce1925da2cdd0e.tar.gz
calcurse-13c21ac28023542a10cb75c085ce1925da2cdd0e.zip
Merge cut/delete
Remove the cut function and merge it into the del-item command. This allows for vim-style cutting/pasting. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 770e967..20a06e0 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -275,7 +275,7 @@ int main(int argc, char **argv)
case KEY_DEL_ITEM:
if (wins_slctd() == APP && apoint_hilt() != 0) {
- interact_day_item_delete(&inday.nb_events, &inday.nb_apoints);
+ interact_day_item_delete(&inday.nb_events, &inday.nb_apoints, reg);
inday = do_storage(0);
wins_update(FLAG_CAL | FLAG_APP | FLAG_STA);
} else if (wins_slctd() == TOD && todo_hilt() != 0) {
@@ -284,14 +284,6 @@ int main(int argc, char **argv)
}
break;
- case KEY_GENERIC_CUT:
- if (wins_slctd() == APP && apoint_hilt() != 0) {
- interact_day_item_cut(&inday.nb_events, &inday.nb_apoints, reg);
- inday = do_storage(0);
- wins_update(FLAG_CAL | FLAG_APP);
- }
- break;
-
case KEY_GENERIC_COPY:
if (wins_slctd() == APP && apoint_hilt() != 0) {
interact_day_item_copy(&inday.nb_events, &inday.nb_apoints, reg);