aboutsummaryrefslogtreecommitdiffstats
path: root/src/apoint.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/apoint.c
parent2d5ce0d95c50003074943eaa05b3c35255286279 (diff)
downloadcalcurse-ba2aa5167b2157c99f3be4861c11717cd1b4cc6f.tar.gz
calcurse-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/apoint.c')
-rw-r--r--src/apoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apoint.c b/src/apoint.c
index f99b94d..9700c1b 100644
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -103,15 +103,15 @@ apoint_hilt_set (int highlighted)
}
void
-apoint_hilt_decrease (void)
+apoint_hilt_decrease (int n)
{
- hilt--;
+ hilt -= n;
}
void
-apoint_hilt_increase (void)
+apoint_hilt_increase (int n)
{
- hilt++;
+ hilt += n;
}
/* Return which appointment is highlighted. */