mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Insert joined pane before the target pane with -b, like for split. From
Takeshi Banse.
This commit is contained in:
@ -143,6 +143,9 @@ cmd_join_pane_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
src_wp->window = dst_w;
|
src_wp->window = dst_w;
|
||||||
options_set_parent(src_wp->options, dst_w->options);
|
options_set_parent(src_wp->options, dst_w->options);
|
||||||
src_wp->flags |= PANE_STYLECHANGED;
|
src_wp->flags |= PANE_STYLECHANGED;
|
||||||
|
if (flags & SPAWN_BEFORE)
|
||||||
|
TAILQ_INSERT_BEFORE(dst_wp, src_wp, entry);
|
||||||
|
else
|
||||||
TAILQ_INSERT_AFTER(&dst_w->panes, dst_wp, src_wp, entry);
|
TAILQ_INSERT_AFTER(&dst_w->panes, dst_wp, src_wp, entry);
|
||||||
layout_assign_pane(lc, src_wp);
|
layout_assign_pane(lc, src_wp);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user