Do not reduce window height by status line height for control mode

clients, from George Nachman.
This commit is contained in:
nicm
2019-05-11 06:34:56 +00:00
parent d62fd78655
commit ad27b7decd
2 changed files with 5 additions and 4 deletions

View File

@ -174,11 +174,12 @@ recalculate_sizes(void)
TAILQ_FOREACH(c, &clients, entry) {
if (ignore_client_size(c))
continue;
if (c->tty.sy <= status_line_size(c))
s = c->session;
if (c->tty.sy <= s->statuslines || (c->flags & CLIENT_CONTROL))
c->flags |= CLIENT_STATUSOFF;
else
c->flags &= ~CLIENT_STATUSOFF;
c->session->attached++;
s->attached++;
}
/* Walk each window and adjust the size. */