viscal

cairo/gtk vi-like timeblocking calendar
git clone git://jb55.com/viscal
Log | Files | Refs | README | LICENSE

commit 95e13519baafab282ba9370a018d33ca5514174c
parent cb6f226ad8db03a71e5ef7d4872bccbc727b4d2e
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 12 Oct 2018 12:59:07 -0700

clear inserting flag when finished editing

otherwise future edits will delete events when cancelled

Diffstat:
Mviscal.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/viscal.c b/viscal.c @@ -1025,8 +1025,8 @@ static void finish_editing(struct cal *cal) // set summary of selected event icalcomponent_set_summary(event->vevent, g_editbuf); - // leave edit mode - cal->flags &= ~CAL_CHANGING; + // leave edit mode, clear inserting flag + cal->flags &= ~(CAL_CHANGING | CAL_INSERTING); } static void append_str_edit_buffer(const char *src)