diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2019-06-07 21:06:14 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-06-07 21:06:18 -0400 |
commit | 3216814be1305948aa9401d442668507af2dffab (patch) | |
tree | dd24b06ec7202b9b16e2753e65285cae808f25e8 /src | |
parent | 4fb5eb4ce390e48ab79eb73304abb92e51185e4a (diff) | |
download | calcurse-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')
-rw-r--r-- | src/custom.c | 1 |
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) { |