commit 21246f5ef8a1f2a81e25f280c82358e14c2661ce
parent f657f6afabd4265f77093424ba004f6927636640
Author: William Casarin <jb55@jb55.com>
Date: Wed, 18 Sep 2019 14:34:33 -0700
save calendar when finished editing
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/viscal.c b/viscal.c
@@ -1239,6 +1239,9 @@ static void finish_editing(struct cal *cal)
// leave edit mode, clear inserting flag
cal->flags &= ~(CAL_CHANGING | CAL_INSERTING);
+
+ // save the calendar
+ save_calendar(event->ical);
}
static void append_str_edit_buffer(const char *src)