summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-11 06:34:56 +0000
committernicm <nicm>2019-05-11 06:34:56 +0000
commitad27b7decd61d353031aeac5de01d44bcb374f26 (patch)
tree489a22db4425fcb707d3076ac22cc0af14dad21d /status.c
parentd62fd78655b305f4db9b41ff3b5a35b909674d74 (diff)
Do not reduce window height by status line height for control mode
clients, from George Nachman.
Diffstat (limited to 'status.c')
-rw-r--r--status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/status.c b/status.c
index 332f8fd6..ef8cf14d 100644
--- a/status.c
+++ b/status.c
@@ -203,7 +203,7 @@ status_at_line(struct client *c)
{
struct session *s = c->session;
- if (c->flags & CLIENT_STATUSOFF)
+ if (c->flags & (CLIENT_STATUSOFF|CLIENT_CONTROL))
return (-1);
if (s->statusat != 1)
return (s->statusat);
@@ -216,7 +216,7 @@ status_line_size(struct client *c)
{
struct session *s = c->session;
- if (c->flags & CLIENT_STATUSOFF)
+ if (c->flags & (CLIENT_STATUSOFF|CLIENT_CONTROL))
return (0);
return (s->statuslines);
}