Only one called remains, so open-code it there.
That caller should eventually go too.
Signed-off-by: NeilBrown <neil@brown.name>
ci->hx = ci->x;
ci->hy = ci->y;
- if (!ci->pointp)
- ci->pointp = pane_point(p);
+ if (!ci->pointp) {
+ struct pane *p2 = p;
+ while (p2 && !p2->point)
+ p2 = p2->parent;
+ if (p2)
+ ci->pointp = &p2->point;
+ }
while (ret == 0 && p) {
if (p->handle) {
ci->home = p;
void pane_clear(struct pane *p, char *attrs);
void pane_text(struct pane *p, wchar_t ch, char *attrs, int x, int y);
char *pane_attr_get(struct pane *p, char *key);
-static inline struct point **pane_point(struct pane *p)
-{
- while (p && !p->point)
- p = p->parent;
- if (p)
- return &p->point;
- return NULL;
-}
static inline struct pane *pane_child(struct pane *p)
{