mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Change swap-window -d to be the other way round (stay with src window),
so it works like swap-pane.
This commit is contained in:
parent
299b7289ea
commit
3c68e51609
@ -78,9 +78,9 @@ cmd_swap_window_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
TAILQ_INSERT_TAIL(&w_dst->winlinks, wl_src, wentry);
|
TAILQ_INSERT_TAIL(&w_dst->winlinks, wl_src, wentry);
|
||||||
|
|
||||||
if (!args_has(self->args, 'd')) {
|
if (!args_has(self->args, 'd')) {
|
||||||
session_select(dst, wl_dst->idx);
|
|
||||||
if (src != dst)
|
|
||||||
session_select(src, wl_src->idx);
|
session_select(src, wl_src->idx);
|
||||||
|
if (src != dst)
|
||||||
|
session_select(dst, wl_dst->idx);
|
||||||
}
|
}
|
||||||
session_group_synchronize_from(src);
|
session_group_synchronize_from(src);
|
||||||
server_redraw_session_group(src);
|
server_redraw_session_group(src);
|
||||||
|
Loading…
Reference in New Issue
Block a user