version 1.54, 2014/11/12 22:57:06 |
version 1.55, 2015/02/05 10:29:43 |
|
|
|
|
if (args_has(args, 'c')) { |
if (args_has(args, 'c')) { |
ft = format_create(); |
ft = format_create(); |
if ((c = cmd_find_client(cmdq, NULL, 1)) != NULL) |
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL, |
format_client(ft, c); |
NULL); |
format_session(ft, s); |
|
format_winlink(ft, s, s->curw); |
|
format_window_pane(ft, s->curw->window->active); |
|
cp = format_expand(ft, args_get(args, 'c')); |
cp = format_expand(ft, args_get(args, 'c')); |
format_free(ft); |
format_free(ft); |
|
|
|
|
template = SPLIT_WINDOW_TEMPLATE; |
template = SPLIT_WINDOW_TEMPLATE; |
|
|
ft = format_create(); |
ft = format_create(); |
if ((c = cmd_find_client(cmdq, NULL, 1)) != NULL) |
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, wl, |
format_client(ft, c); |
new_wp); |
format_session(ft, s); |
|
format_winlink(ft, s, wl); |
|
format_window_pane(ft, new_wp); |
|
|
|
cp = format_expand(ft, template); |
cp = format_expand(ft, template); |
cmdq_print(cmdq, "%s", cp); |
cmdq_print(cmdq, "%s", cp); |