version 1.127, 2017/04/20 09:20:22 |
version 1.128, 2017/04/20 09:39:07 |
|
|
struct winlink *wl) |
struct winlink *wl) |
{ |
{ |
struct window *w = wl->window; |
struct window *w = wl->window; |
char *flags; |
|
|
|
if (ft->w == NULL) |
if (ft->w == NULL) |
ft->w = wl->window; |
ft->w = wl->window; |
|
|
flags = window_printable_flags(s, wl); |
|
|
|
format_defaults_window(ft, w); |
format_defaults_window(ft, w); |
|
|
format_add(ft, "window_index", "%d", wl->idx); |
format_add(ft, "window_index", "%d", wl->idx); |
format_add(ft, "window_flags", "%s", flags); |
format_add(ft, "window_flags", "%s", window_printable_flags(s, wl)); |
format_add(ft, "window_active", "%d", wl == s->curw); |
format_add(ft, "window_active", "%d", wl == s->curw); |
|
|
format_add(ft, "window_bell_flag", "%d", |
format_add(ft, "window_bell_flag", "%d", |
|
|
format_add(ft, "window_last_flag", "%d", |
format_add(ft, "window_last_flag", "%d", |
!!(wl == TAILQ_FIRST(&s->lastw))); |
!!(wl == TAILQ_FIRST(&s->lastw))); |
format_add(ft, "window_linked", "%d", session_is_linked(s, wl->window)); |
format_add(ft, "window_linked", "%d", session_is_linked(s, wl->window)); |
|
|
free(flags); |
|
} |
} |
|
|
/* Set default format keys for a window pane. */ |
/* Set default format keys for a window pane. */ |