diff options
author | 2009-10-10 10:02:48 +0000 | |
---|---|---|
committer | 2009-10-10 10:02:48 +0000 | |
commit | 01b2421e04cbfd153be5c6642d40c8f87c09f4c5 (patch) | |
tree | c4fa5b75121b64ed84165f58352a2776ecbcbfc4 /usr.bin/tmux/cmd-move-window.c | |
parent | We don't need independent file reader and writer anymore. So, (diff) | |
download | wireguard-openbsd-01b2421e04cbfd153be5c6642d40c8f87c09f4c5.tar.xz wireguard-openbsd-01b2421e04cbfd153be5c6642d40c8f87c09f4c5.zip |
Add "grouped sessions" which have independent name, options, current window and
so on but where the linked windows are synchronized (ie creating, killing
windows and so on are mirrored between the sessions). A grouped session may be
created by passing -t to new-session.
Had this around for a while, tested by a couple of people.
Diffstat (limited to 'usr.bin/tmux/cmd-move-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-move-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-move-window.c b/usr.bin/tmux/cmd-move-window.c index fc7a4a867a8..381118b6e5b 100644 --- a/usr.bin/tmux/cmd-move-window.c +++ b/usr.bin/tmux/cmd-move-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-move-window.c,v 1.7 2009/09/20 17:31:26 nicm Exp $ */ +/* $OpenBSD: cmd-move-window.c,v 1.8 2009/10/10 10:02:48 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -55,7 +55,7 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx) kflag = data->chflags & CMD_CHFLAG('k'); dflag = data->chflags & CMD_CHFLAG('d'); - if (server_link_window(wl, dst, idx, kflag, !dflag, &cause) != 0) { + if (server_link_window(src, wl, dst, idx, kflag, !dflag, &cause) != 0) { ctx->error(ctx, "can't move window: %s", cause); xfree(cause); return (-1); |