summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-07 18:31:49 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-07 18:42:33 +0100
commitddfe49d9feeba0d280e501f67cda64646e79d901 (patch)
treeb6338a4ae11117bf00b408b1c9d97ac05b0125c5
parent41b3ab7d17866ba01a378d88a970c494c7600c48 (diff)
downloadcalcurse-ddfe49d9feeba0d280e501f67cda64646e79d901.zip
custom.c: Display missing options
Also, determine the number of displayed options on the general configuration screen automatically (statically) instead of hard-coding the value to prevent from future fallouts. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/custom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/custom.c b/src/custom.c
index b0cbee2..c05b140 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -667,7 +667,7 @@ static enum listbox_row_type general_option_row_type(int i, void *cb_data)
static int general_option_height(int i, void *cb_data)
{
- if (i == 9)
+ if (i == 11)
return 4;
else
return 3;
@@ -770,7 +770,7 @@ void custom_general_config(void)
listbox_init(&lb, 0, 0, notify_bar() ? row - 3 : row - 2, col,
_("general options"), general_option_row_type,
general_option_height, print_general_option);
- listbox_load_items(&lb, 10);
+ listbox_load_items(&lb, NB_OPTIONS);
listbox_draw_deco(&lb, 0);
listbox_display(&lb);
wins_set_bindings(bindings, ARRAY_SIZE(bindings));