version 1.19, 2012/05/22 11:35:37 |
version 1.20, 2012/05/29 08:15:45 |
|
|
return (0); |
return (0); |
|
|
if ((template = args_get(args, 'F')) == NULL) |
if ((template = args_get(args, 'F')) == NULL) |
template = DEFAULT_WINDOW_TEMPLATE; |
template = DEFAULT_WINDOW_TEMPLATE " \"#{pane_title}\""; |
|
|
cur = idx = 0; |
cur = idx = 0; |
RB_FOREACH(wm, winlinks, &s->windows) { |
RB_FOREACH(wm, winlinks, &s->windows) { |
|
|
format_add(ft, "line", "%u", idx); |
format_add(ft, "line", "%u", idx); |
format_session(ft, s); |
format_session(ft, s); |
format_winlink(ft, s, wm); |
format_winlink(ft, s, wm); |
|
format_window_pane(ft, wm->window->active); |
|
|
line = format_expand(ft, template); |
line = format_expand(ft, template); |
window_choose_add(wl->window->active, idx, "%s", line); |
window_choose_add(wl->window->active, wm->idx, "%s", line); |
|
|
xfree(line); |
xfree(line); |
format_free(ft); |
format_free(ft); |