Return to cmd-swap-pane.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.37, 2020/04/13 10:59:58 | version 1.38, 2020/05/16 16:20:59 | ||
---|---|---|---|
|
|
||
if (src_wp == dst_wp) | if (src_wp == dst_wp) | ||
goto out; | goto out; | ||
server_client_remove_pane(src_wp); | |||
server_client_remove_pane(dst_wp); | |||
tmp_wp = TAILQ_PREV(dst_wp, window_panes, entry); | tmp_wp = TAILQ_PREV(dst_wp, window_panes, entry); | ||
TAILQ_REMOVE(&dst_w->panes, dst_wp, entry); | TAILQ_REMOVE(&dst_w->panes, dst_wp, entry); | ||
TAILQ_REPLACE(&src_w->panes, src_wp, dst_wp, entry); | TAILQ_REPLACE(&src_w->panes, src_wp, dst_wp, entry); |