version 1.42, 2017/04/22 10:22:39 |
version 1.43, 2017/05/01 12:20:55 |
|
|
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
struct winlink *wl; |
struct winlink *wl; |
u_int n; |
u_int n; |
struct format_tree *ft; |
struct format_tree *ft; |
const char *template; |
const char *template; |
char *line; |
char *line; |
|
|
|
|
n = 0; |
n = 0; |
RB_FOREACH(wl, winlinks, &s->windows) { |
RB_FOREACH(wl, winlinks, &s->windows) { |
ft = format_create(item, FORMAT_NONE, 0); |
ft = format_create(item->client, item, FORMAT_NONE, 0); |
format_add(ft, "line", "%u", n); |
format_add(ft, "line", "%u", n); |
format_defaults(ft, NULL, s, wl, NULL); |
format_defaults(ft, NULL, s, wl, NULL); |
|
|