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

3
tty.c
View File

@@ -701,11 +701,10 @@ tty_repeat_space(struct tty *tty, u_int n)
/* Is this window bigger than the terminal? */
int
tty_window_bigger(struct tty *tty)
tty_window_bigger(struct tty *tty, struct window *w)
{
struct client *c = tty->client;
struct session *s = c->session;
struct window *w = s->curw->window;
return (tty->sx < w->sx || tty->sy - status_line_size(c) < w->sy);
}