aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2018-08-20 20:05:34 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2018-08-20 20:05:34 +0100
commit9f39470b382481f9ec0d9eb17d196a753ecf8e33 (patch)
tree799d95b4ac052968a92a4dea4a3a1b62c12b3952 /server-client.c
parent458b4b77014361c1df05a84b81e3318aeb19e6cd (diff)
downloadrtmux-9f39470b382481f9ec0d9eb17d196a753ecf8e33.tar.gz
rtmux-9f39470b382481f9ec0d9eb17d196a753ecf8e33.tar.bz2
rtmux-9f39470b382481f9ec0d9eb17d196a753ecf8e33.zip
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.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c2
1 files changed, 1 insertions, 1 deletions
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;