Sync OpenBSD patchset 1112:

Use -t for move-window with -r rather than dying. Reported by Ben
Boeckel and Thomas Adam.
pull/1/head
Tiago Cunha 2012-05-22 20:50:03 +00:00
parent d61c572c92
commit 3604b31b6f
1 changed files with 3 additions and 4 deletions

View File

@ -47,11 +47,10 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx)
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();