viscal

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

commit 9f06b3a45de6d2aa1582e0e5860d5991d342c795
parent f5031cd5f1e984f6d84f82d4bb29a98fd54ac839
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 25 Aug 2018 23:33:49 -0700

hacky fixes for insert bug

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

diff --git a/viscal.c b/viscal.c @@ -635,8 +635,6 @@ static void push_down(struct cal *cal, int from, int ind, time_t push_to) static void open_below(struct cal *cal) { - // TODO: create 30 minute/configurable event if there's space - time_t st, et; int ind; time_t push_to; @@ -664,7 +662,9 @@ static void open_below(struct cal *cal) create_event(cal, et, push_to, ev->ical->calendar); - select_down(cal, 1); + // XXX: sooo the event doesn't technically exist yet, so this is potentially + // a buffer busting operation... keep an eye out for this one :| + cal->selected_event_ind++; }