mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +00:00
Add a B flag to mark windows bigger than the client.
This commit is contained in:
4
window.c
4
window.c
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user