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>
This commit is contained in:
16
src/todo.c
16
src/todo.c
@@ -61,15 +61,15 @@ todo_hilt_set (int highlighted)
|
||||
}
|
||||
|
||||
void
|
||||
todo_hilt_decrease (void)
|
||||
todo_hilt_decrease (int n)
|
||||
{
|
||||
hilt--;
|
||||
hilt -= n;
|
||||
}
|
||||
|
||||
void
|
||||
todo_hilt_increase (void)
|
||||
todo_hilt_increase (int n)
|
||||
{
|
||||
hilt++;
|
||||
hilt += n;
|
||||
}
|
||||
|
||||
/* Return which todo is highlighted. */
|
||||
@@ -101,15 +101,15 @@ todo_set_first (int nb)
|
||||
}
|
||||
|
||||
void
|
||||
todo_first_increase (void)
|
||||
todo_first_increase (int n)
|
||||
{
|
||||
first++;
|
||||
first += n;
|
||||
}
|
||||
|
||||
void
|
||||
todo_first_decrease (void)
|
||||
todo_first_decrease (int n)
|
||||
{
|
||||
first--;
|
||||
first -= n;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user