mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
Fix swap-window -d to work as intended, GitHub issue 1879 from Sam Stuewe.
This commit is contained in:
parent
37583f0a69
commit
39c55d5b6f
@ -77,10 +77,10 @@ cmd_swap_window_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
wl_src->window = w_dst;
|
wl_src->window = w_dst;
|
||||||
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(src, wl_src->idx);
|
session_select(dst, wl_dst->idx);
|
||||||
if (src != dst)
|
if (src != dst)
|
||||||
session_select(dst, wl_dst->idx);
|
session_select(src, wl_src->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