version 1.1, 2009/06/01 22:58:49 |
version 1.2, 2009/07/13 17:47:46 |
|
|
|
|
if ((wl_src = cmd_find_window(ctx, data->src, NULL)) == NULL) |
if ((wl_src = cmd_find_window(ctx, data->src, NULL)) == NULL) |
return (-1); |
return (-1); |
|
if ((idx = cmd_find_index(ctx, data->dst, &dst)) == -2) |
if (arg_parse_window(data->dst, &dst, &idx) != 0) { |
|
ctx->error(ctx, "bad window: %s", data->dst); |
|
return (-1); |
return (-1); |
} |
|
if (dst == NULL) |
|
dst = ctx->cursession; |
|
if (dst == NULL) |
|
dst = cmd_current_session(ctx); |
|
if (dst == NULL) { |
|
ctx->error(ctx, "session not found: %s", data->dst); |
|
return (-1); |
|
} |
|
|
|
wl_dst = NULL; |
wl_dst = NULL; |
if (idx != -1) |
if (idx != -1) |