struct pane *p = doc_attach(ci->focus, d);
struct pane *c = pane_child(ci->home);
+ point_dup(ci->home->point, &p->point);
if (c)
pane_clone(c, p);
return 1;
p = pane_register(parent, 0, &doc_handle, d, NULL);
if (!d->home)
d->home = p;
- else
- point_new(d, &p->point);
d->ed = pane2ed(parent);
doc_promote(d);
return p;
{
struct pane *p;
p = doc_attach(parent, doc->data);
- if (p)
+ if (p) {
+ point_new(doc->data, &p->point);
p = pane_attach(p, "view", doc, NULL);
+ }
if (p)
p = render_attach(render, p);
return p;