From b4e74f4310d90affd4e1a4a7328082ac4beb5461 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 25 Sep 2018 09:54:47 +0100 Subject: Add a B flag to mark windows bigger than the client. --- tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index bf4c1424..f3cbbf23 100644 --- a/tty.c +++ b/tty.c @@ -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); } -- cgit