summaryrefslogtreecommitdiff
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-10-03 23:58:39 +0000
committerLukas Fleischer <calcurse@cryptocrack.de>2011-10-06 12:37:06 +0200
commitba2aa5167b2157c99f3be4861c11717cd1b4cc6f (patch)
treec1801a746653bb7e04cf4603e321b0ba98e6de35 /src/calcurse.c
parent2d5ce0d95c50003074943eaa05b3c35255286279 (diff)
downloadcalcurse-ba2aa5167b2157c99f3be4861c11717cd1b4cc6f.zip
Add count parameter to *_{in,de}crease()
This allows for moving more than one item up/down. This currently isn't used anywhere but will be bound to a key with one of the following patches. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 05d8f6a..44fc0fe 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -300,7 +300,7 @@ main (int argc, char **argv)
case KEY_GENERIC_ADD_TODO:
todo_new_item ();
if (todo_hilt () == 0 && todo_nb () == 1)
- todo_hilt_increase ();
+ todo_hilt_increase (1);
wins_update (FLAG_TOD | FLAG_STA);
break;
@@ -315,7 +315,7 @@ main (int argc, char **argv)
case TOD:
todo_new_item ();
if (todo_hilt () == 0 && todo_nb () == 1)
- todo_hilt_increase ();
+ todo_hilt_increase (1);
wins_update (FLAG_TOD | FLAG_STA);
break;
default:
@@ -504,15 +504,15 @@ main (int argc, char **argv)
}
else if ((wins_slctd () == APP) && (apoint_hilt () > 1))
{
- apoint_hilt_decrease ();
+ apoint_hilt_decrease (1);
apoint_scroll_pad_up (inday.nb_events);
wins_update (FLAG_APP);
}
else if ((wins_slctd () == TOD) && (todo_hilt () > 1))
{
- todo_hilt_decrease ();
+ todo_hilt_decrease (1);
if (todo_hilt_pos () < 0)
- todo_first_decrease ();
+ todo_first_decrease (1);
wins_update (FLAG_TOD);
}
break;
@@ -528,15 +528,15 @@ main (int argc, char **argv)
else if ((wins_slctd () == APP) &&
(apoint_hilt () < inday.nb_events + inday.nb_apoints))
{
- apoint_hilt_increase ();
+ apoint_hilt_increase (1);
apoint_scroll_pad_down (inday.nb_events, win[APP].h);
wins_update (FLAG_APP);
}
else if ((wins_slctd () == TOD) && (todo_hilt () < todo_nb ()))
{
- todo_hilt_increase ();
+ todo_hilt_increase (1);
if (todo_hilt_pos () == win[TOD].h - 4)
- todo_first_increase ();
+ todo_first_increase (1);
wins_update (FLAG_TOD);
}
break;