Whoops, I missed this. I think it should use -t like everything else: Index: cmd-move-window.c =================================================================== RCS file: /cvs/src/usr.bin/tmux/cmd-move-window.c,v retrieving revision 1.11 diff -u -p -r1.11 cmd-move-window.c --- cmd-move-window.c 29 Apr 2012 17:20:01 -0000 1.11 +++ cmd-move-window.c 10 May 2012 06:01:42 -0000 @@ -47,11 +47,10 @@ cmd_move_window_exec(struct cmd *self, s char *cause; int idx, kflag, dflag; - if ((s = ctx->curclient->session) == NULL) - return (-1); + if (args_has(args, 'r')) { + if ((s = cmd_find_session(ctx, args_get(args, 't'), 0)) == NULL) + return (-1); - if (args_has(args, 'r')) - { session_renumber_windows(s); recalculate_sizes();
On Tue, May 08, 2012 at 10:03:49AM -0400, Ben Boeckel wrote: > On Tue, May 08, 2012 at 11:04:36 +0100, Thomas Adam wrote: > > On 8 May 2012 10:04, Thomas Adam <tho...@xteddy.org> wrote: > > > So I am not sure how best do this, other than have -r take a parameter to > > > specify a session, and use cmd_find_session() to look it up. > > > > Something like the following? Completely and utterly untested. > > It's pretty much what I have which just uses s instead of r in > cmd_find_session. > > > diff --git a/trunk/cmd-move-window.c b/trunk/cmd-move-window.c > > index acb5044..6b17b82 100644 > > --- a/trunk/cmd-move-window.c > > +++ b/trunk/cmd-move-window.c > > @@ -30,7 +30,7 @@ int cmd_move_window_exec(struct cmd *, struct > > cmd_ctx *); > > > > const struct cmd_entry cmd_move_window_entry = { > > "move-window", "movew", > > - "dkrs:t:", 0, 0, > > + "dkr:s:t:", 0, 0, > > "[-dkr] " CMD_SRCDST_WINDOW_USAGE, > > 0, > > NULL, > > - "[-dkr] " CMD_SRCDST_WINDOW_USAGE, > + "[-dk] [-r target-session] " CMD_SRCDST_WINDOW_USAGE, > > Maybe? > > --Ben > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users