Skip to main content

resolve

Function resolve 

Source
pub(crate) fn resolve(
    root: Option<&LayoutNode>,
    rec: &OriginRecord,
) -> Resolution
Expand description

Where rec puts the pane back, given the origin tab’s tree as it is now. A tab-mate that is still in a pane wins (the pane never left); else the first neighbour that is still a shown pane, which is the nearest one since the list is ordered by nearness; else Fallback. “Beyond recognition” is exactly that last case: the tab is gone (the caller’s check), or no recorded neighbour is a pane of it that is not a chip.