summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-05-09 08:39:10 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-05-09 08:39:10 +0000
commitb4f2510d2379a218f67ff183b6f45d57edccf7da (patch)
tree8cfe4d1251ede330fc7cba8b6f2afed4dba5bf35 /usr.bin/tmux
parent9e0ac527152011b55bbd146f7eb3a25f06e591ca (diff)
Change swap-window -d to be the other way round (stay with src window),
so it works like swap-pane.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-swap-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-swap-window.c b/usr.bin/tmux/cmd-swap-window.c
index d7694c71fce..e2048155aba 100644
--- a/usr.bin/tmux/cmd-swap-window.c
+++ b/usr.bin/tmux/cmd-swap-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-swap-window.c,v 1.23 2017/04/22 10:22:39 nicm Exp $ */
+/* $OpenBSD: cmd-swap-window.c,v 1.24 2019/05/09 08:39:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -78,9 +78,9 @@ cmd_swap_window_exec(struct cmd *self, struct cmdq_item *item)
TAILQ_INSERT_TAIL(&w_dst->winlinks, wl_src, wentry);
if (!args_has(self->args, 'd')) {
- session_select(dst, wl_dst->idx);
+ session_select(src, wl_src->idx);
if (src != dst)
- session_select(src, wl_src->idx);
+ session_select(dst, wl_dst->idx);
}
session_group_synchronize_from(src);
server_redraw_session_group(src);