26f52d42eb3efb3f44cd00559ffb9ea6568cb3c2 — William Casarin a month ago b558d9e
move_relative: fix wrt. hidden calendars
1 files changed, 7 insertions(+), 1 deletions(-)

M viscal.c
M viscal.c => viscal.c +7 -1
@@ 974,7 974,13 @@ if ((hit = query_span(cal, 0, st, et, 0, 0)) != -1) {
  		struct event *ev = &cal->events[hit];
  		vevent_span_timet(ev->vevent, &st, &et);
- 		cal->current = st;
+ 
+ 		if (!ev->ical->visible) {
+ 			hit = -1;
+ 		}
+ 		else {
+ 			cal->current = st;
+ 		}
  	}
  
  	cal->selected_event_ind = hit;