Add a helper to swap a node into the place of a leaf, from Dane Jensen.

This commit is contained in:
nicm
2026-06-27 10:18:32 +00:00
parent dd02989e88
commit e24969b422
2 changed files with 36 additions and 21 deletions

2
tmux.h
View File

@@ -3643,6 +3643,8 @@ int layout_resize_floating_pane_to(struct window_pane *,
enum layout_type, u_int, char **);
void layout_assign_pane(struct layout_cell *, struct window_pane *,
int);
struct layout_cell *layout_replace_with_node(struct window *,
struct layout_cell *, enum layout_type);
struct layout_cell *layout_split_pane(struct window_pane *, enum layout_type,
int, int);
struct layout_cell *layout_floating_pane(struct window *, struct window_pane *,