Add a B flag to mark windows bigger than the client.

This commit is contained in:
Nicholas Marriott
2018-09-25 09:54:47 +01:00
parent 26d73a7736
commit b4e74f4310
5 changed files with 11 additions and 8 deletions

View File

@ -739,7 +739,7 @@ window_destroy_panes(struct window *w)
}
const char *
window_printable_flags(struct winlink *wl)
window_printable_flags(struct winlink *wl, struct client *c)
{
struct session *s = wl->session;
static char flags[32];
@ -760,6 +760,8 @@ window_printable_flags(struct winlink *wl)
flags[pos++] = 'M';
if (wl->window->flags & WINDOW_ZOOMED)
flags[pos++] = 'Z';
if (c != NULL && tty_window_bigger(&c->tty, wl->window))
flags[pos++] = 'B';
flags[pos] = '\0';
return (flags);
}