mirror of
https://github.com/tmux/tmux.git
synced 2025-10-26 12:27:15 +00:00
Do not reduce window height by status line height for control mode
clients, from George Nachman.
This commit is contained in:
4
status.c
4
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user