{
struct point *ptmp, *pnear;
int i;
- struct doc *d = p->doc;
pnear = p;
ptmp = p;
struct mark *mnear = NULL;
struct tlist_head *tl;
- if (!d->views[i].notify)
- continue;
tl = &pnear->links->lists[i];
+ if (tlist_empty(tl))
+ continue;
tlist_for_each_continue(tl, GRP_HEAD) {
struct mark *mtmp;
if (TLIST_TYPE(tl) != GRP_MARK)
static void point_backward_to_mark(struct point *p, struct mark *m)
{
struct point *ptmp, *pnear;
- struct doc *d = p->doc;
int i;
pnear = p;
struct mark *mnear = NULL;
struct tlist_head *tl;
- if (!d->views[i].notify)
- continue;
tl = &pnear->links->lists[i];
+ if (tlist_empty(tl))
+ continue;
tlist_for_each_continue_reverse(tl, GRP_HEAD) {
struct mark *mtmp;
if (TLIST_TYPE(tl) != GRP_MARK)