aboutsummaryrefslogtreecommitdiffstats
path: root/src/custom.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2019-06-07 21:06:14 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2019-06-07 21:06:18 -0400
commit3216814be1305948aa9401d442668507af2dffab (patch)
treedd24b06ec7202b9b16e2753e65285cae808f25e8 /src/custom.c
parent4fb5eb4ce390e48ab79eb73304abb92e51185e4a (diff)
downloadcalcurse-3216814be1305948aa9401d442668507af2dffab.tar.gz
calcurse-3216814be1305948aa9401d442668507af2dffab.zip
Use current value as default for periodic save
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/custom.c')
-rw-r--r--src/custom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/custom.c b/src/custom.c
index 01e6ba3..3fc3a2a 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -832,6 +832,7 @@ static void general_option_edit(int i)
break;
case PERIODIC_SAVE:
status_mesg(periodic_save_str, "");
+ snprintf(buf, BUFSIZ, "%d", conf.periodic_save);
if (updatestring(win[STA].p, &buf, 0, 1) == 0) {
val = atoi(buf);
if (val >= 0) {