Skip to main content

stack_tree_edit

Function stack_tree_edit 

Source
fn stack_tree_edit(
    state: &mut State,
    op: &str,
    tab_id: String,
    correlation_id: String,
    not_found: String,
    edit: impl FnOnce(&mut LayoutNode) -> bool,
) -> Vec<Event>
Expand description

Event::Error for an unknown tab. Apply a pane-tab edit to the tab’s tree and emit the tree-only LayoutTreeReplaced (no slices: focus, magnify, leaf order and the pending-action queue are untouched). edit returns false when it found nothing to act on.