version 1.22, 2013/03/25 11:43:01 |
version 1.23, 2013/03/25 16:04:07 |
|
|
struct args *args = self->args; |
struct args *args = self->args; |
struct cmd_if_shell_data *cdata; |
struct cmd_if_shell_data *cdata; |
char *shellcmd; |
char *shellcmd; |
|
struct client *c; |
struct session *s = NULL; |
struct session *s = NULL; |
struct winlink *wl = NULL; |
struct winlink *wl = NULL; |
struct window_pane *wp = NULL; |
struct window_pane *wp = NULL; |
|
|
|
|
if (args_has(args, 't')) |
if (args_has(args, 't')) |
wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp); |
wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp); |
|
else { |
|
c = cmd_find_client(cmdq, NULL, 1); |
|
if (c != NULL && c->session != NULL) { |
|
s = c->session; |
|
wl = s->curw; |
|
wp = wl->window->active; |
|
} |
|
} |
|
|
ft = format_create(); |
ft = format_create(); |
if (s != NULL) |
if (s != NULL) |