From 3216814be1305948aa9401d442668507af2dffab Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 7 Jun 2019 21:06:14 -0400 Subject: Use current value as default for periodic save Signed-off-by: Lukas Fleischer --- src/custom.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3-70-g09d2