return NULL;
}
-void point_notify_change(struct point *p, struct mark *m)
+void point_notify_change(struct doc *d, struct point *p, struct mark *m)
{
/* Notify of changes from m (might be NULL) to p.
* Notify the last mark which is before p or m,
* There will be none in between.
*/
struct cmd_info ci = {0};
- struct doc *d = p->doc;
int i;
ci.key = "Notify:Replace";
int remaining = d->nviews;
if (m->viewnum == MARK_POINT) {
- point_notify_change(container_of(m, struct point, m), NULL);
+ point_notify_change(d, container_of(m, struct point, m), NULL);
return;
}
void __mark_reset(struct doc *d, struct mark *m, int new, int end);
void mark_forward_over(struct mark *m, struct mark *m2);
void mark_backward_over(struct mark *m, struct mark *mp);
-void point_notify_change(struct point *p, struct mark *m);
+void point_notify_change(struct doc *d, struct point *p, struct mark *m);
void doc_notify_change(struct doc *d, struct mark *m);
void doc_check_consistent(struct doc *d);
void point_to_mark(struct point *p, struct mark *m);
if (early && !text_ref_same(t, &early->ref, &start))
early = NULL;
- point_notify_change(ci->home->point, early);
+ point_notify_change(d, ci->home->point, early);
text_check_consistent(t);
}
text_check_consistent(t);
}
- point_notify_change(pos, early);
+ point_notify_change(d, pos, early);
ci->numeric = first;
return 1;
}