diff options
author | Baptiste Jonglez <baptiste--git@jonglez.org> | 2012-05-28 04:50:39 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-05-31 20:42:15 +0200 |
commit | 9e1185f526e4a6636a64b026c6617898a6a1c8aa (patch) | |
tree | ed64a6606bf4c619b0e75bd381ce15f0566d58f7 /src/custom.c | |
parent | 7eb3abb08a0b20bef49a9bf717ea30fad27c5606 (diff) | |
download | calcurse-9e1185f526e4a6636a64b026c6617898a6a1c8aa.zip |
Give a meaning to DATE_FORMATS
It's a bit weird to consider DATE_FORMATS as part of the date input
format enum, all the more so as it does not even represent the number
of available formats (since those are numbered from 1).
Turn DATE_FORMATS into the number of available date input formats.
Signed-off-by: Baptiste Jonglez <baptiste--git@jonglez.org>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/custom.c')
-rw-r--r-- | src/custom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custom.c b/src/custom.c index b8bd89b..049f0ff 100644 --- a/src/custom.c +++ b/src/custom.c @@ -792,7 +792,7 @@ void custom_general_config(void) case '0': val = status_ask_simplechoice(input_datefmt_prefix, input_datefmt_choices, - DATE_FORMATS - 1); + DATE_FORMATS); if (val != -1) conf.input_datefmt = val; break; |