Use current value as default for periodic save

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2019-06-07 21:06:14 -04:00
parent 4fb5eb4ce3
commit 3216814be1

View File

@ -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) {