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