fn chain_root(state: &AppState, pane: &str) -> StringExpand description
The pane a chain of popups started in: pane itself unless it is a popup
pane, else its opener’s root, as far up as the panes still exist. Popups
are counted over its whole tree, so a popup opening popups shares its
root’s cap rather than getting its own.