Use current value as default for periodic save
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
4fb5eb4ce3
commit
3216814be1
@ -832,6 +832,7 @@ static void general_option_edit(int i)
|
|||||||
break;
|
break;
|
||||||
case PERIODIC_SAVE:
|
case PERIODIC_SAVE:
|
||||||
status_mesg(periodic_save_str, "");
|
status_mesg(periodic_save_str, "");
|
||||||
|
snprintf(buf, BUFSIZ, "%d", conf.periodic_save);
|
||||||
if (updatestring(win[STA].p, &buf, 0, 1) == 0) {
|
if (updatestring(win[STA].p, &buf, 0, 1) == 0) {
|
||||||
val = atoi(buf);
|
val = atoi(buf);
|
||||||
if (val >= 0) {
|
if (val >= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user