From 9f39470b382481f9ec0d9eb17d196a753ecf8e33 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 20 Aug 2018 20:05:34 +0100 Subject: Only screen-redraw.c needs to adjust for message or prompt when the status line is off, get rid of tty_status_lines and just pass the client into status_line_size so it can check the CLIENT_STATUSOFF flag as well. --- server-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server-client.c') diff --git a/server-client.c b/server-client.c index 49a4b37d..78c917ea 100644 --- a/server-client.c +++ b/server-client.c @@ -1252,7 +1252,7 @@ server_client_reset_state(struct client *c) cy = wp->yoff + s->cy - oy; if (status_at_line(c) == 0) - cy += status_line_size(c->session); + cy += status_line_size(c); } if (!cursor) mode &= ~MODE_CURSOR; -- cgit