mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 16:27:03 +00:00
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.
This commit is contained in:
10
resize.c
10
resize.c
@ -85,7 +85,7 @@ default_window_size(struct session *s, struct window *w, u_int *sx, u_int *sy,
|
||||
continue;
|
||||
|
||||
cx = c->tty.sx;
|
||||
cy = c->tty.sy - tty_status_lines(&c->tty);
|
||||
cy = c->tty.sy - status_line_size(c);
|
||||
|
||||
if (cx > *sx)
|
||||
*sx = cx;
|
||||
@ -105,7 +105,7 @@ default_window_size(struct session *s, struct window *w, u_int *sx, u_int *sy,
|
||||
continue;
|
||||
|
||||
cx = c->tty.sx;
|
||||
cy = c->tty.sy - tty_status_lines(&c->tty);
|
||||
cy = c->tty.sy - status_line_size(c);
|
||||
|
||||
if (cx < *sx)
|
||||
*sx = cx;
|
||||
@ -167,7 +167,7 @@ recalculate_sizes(void)
|
||||
if ((flags & CLIENT_CONTROL) && (~flags & CLIENT_SIZECHANGED))
|
||||
continue;
|
||||
|
||||
if (c->tty.sy <= tty_status_lines(&c->tty))
|
||||
if (c->tty.sy <= status_line_size(c))
|
||||
c->flags |= CLIENT_STATUSOFF;
|
||||
else
|
||||
c->flags &= ~CLIENT_STATUSOFF;
|
||||
@ -200,7 +200,7 @@ recalculate_sizes(void)
|
||||
continue;
|
||||
|
||||
cx = c->tty.sx;
|
||||
cy = c->tty.sy - tty_status_lines(&c->tty);
|
||||
cy = c->tty.sy - status_line_size(c);
|
||||
|
||||
if (cx > sx)
|
||||
sx = cx;
|
||||
@ -222,7 +222,7 @@ recalculate_sizes(void)
|
||||
continue;
|
||||
|
||||
cx = c->tty.sx;
|
||||
cy = c->tty.sy - tty_status_lines(&c->tty);
|
||||
cy = c->tty.sy - status_line_size(c);
|
||||
|
||||
if (cx < sx)
|
||||
sx = cx;
|
||||
|
Reference in New Issue
Block a user