-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Tue, Apr 24, 2012 at 22:07:40 GMT, Thomas Adam wrote: > diff --git a/trunk/cmd-move-window.c b/trunk/cmd-move-window.c > index 5c4dbbe..acb5044 100644 > --- a/trunk/cmd-move-window.c > +++ b/trunk/cmd-move-window.c > @@ -42,11 +42,22 @@ int > cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx) > { > struct args *args = self->args; > - struct session *src, *dst; > + struct session *src, *dst, *s; > struct winlink *wl; > char *cause; > int idx, kflag, dflag; > > + if ((s = ctx->curclient->session) == NULL) > + return (-1); > + > + if (args_has(args, 'r')) > + { > + session_renumber_windows(s); > + recalculate_sizes(); > + > + return (0); > + } > + > if ((wl = cmd_find_window(ctx, args_get(args, 's'), &src)) == NULL) > return (-1); > if ((idx = cmd_find_index(ctx, args_get(args, 't'), &dst)) == -2)
This breaks external tmux controlling with move-window altogether. There's no curclient outside of tmux itself. Should -s be taken into account as a session when -r is around? - --Ben -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJPqGUFAAoJEKaxavVX4C1X9poP/2Np6fhh43AwK3dfahsmusNn nQCSgXuV80mcgRlWnLP713zSrJVq3cv0NK0tUNExmHquZXLirOhvqcaQztIA9bdv 9WUOaX7sz0SYM7qTi/M4oAVjrM8Bvfn9xS8oKLXtAPug/ofFKRW3/YXw7VlN1tTM MLGv0M/D4eOBBzurXTlb5NJ+N4ZpCnj9oH91FUuuq1ZQ4XwYQLlcm9LjK8H02u1O g5MYX+wT0sCT2O0DA+dCy7zd+PIvXNo+SPIvcf3AUymNu+QEOb4QLPPG9yMX9ued FxrllnYuB46tgN/MrGIc1+YMa3encRvev1znUjUTAcPIxeKZUzIRq2ceu80hWEp7 SzDBTeqqXMCyqBc1gKUWhYbK6qrOd+W2PogD6xpQlk0VyEEku/ZJsGSX7tBpOWzl igWxSvhFGahbdjoZN54G1wCDiIqX/m5XriCqjgkjB8wQh3uPMxZ5TopjqBz3ns8u TDMT0P/3NTHSsntXUtBTf3o7FZWkLMLWFE9rA1UEkoMdTQjPhzTN6OouxbhE28QB ispnlajK96gCanh+e2iDXtVC7nfYnlYN7Xr5SAI66yRIUW28tWroNKadCSM0RI/z fnogYQS3TjjfdvjF4+XhNFaYI+/a1wOFlOsmRW+LhxfZMh0rAKtUvf1IL6dI5W1R Nnpo75VXYPERQFJ0mC4p =afgI -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ 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