This is cleaner than moving the point directly
Signed-off-by: NeilBrown <neil@brown.name>
{
bool first = 1;
struct pane *p;
- struct point **ptp;
struct doc *d;
+ struct cmd_info ci = {0};
p = doc_new(pane2ed(parent), "text");
if (!p)
return p;
}
doc_replace(p, NULL, text, &first);
- ptp = pane_point(p);
- point_reset(*ptp);
+ ci.key = "Move-File";
+ ci.numeric = -1;
+ ci.focus = p;
+ key_handle_focus(&ci);
return p;
}