aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 00f58d1c..7e52755c 100644
--- a/tty.c
+++ b/tty.c
@@ -701,9 +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, struct window *w)
+tty_window_bigger(struct tty *tty)
{
struct client *c = tty->client;
+ struct window *w = c->session->curw->window;
return (tty->sx < w->sx || tty->sy - status_line_size(c) < w->sy);
}