diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-08-20 20:05:34 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-08-20 20:05:34 +0100 |
commit | 9f39470b382481f9ec0d9eb17d196a753ecf8e33 (patch) | |
tree | 799d95b4ac052968a92a4dea4a3a1b62c12b3952 /resize.c | |
parent | 458b4b77014361c1df05a84b81e3318aeb19e6cd (diff) | |
download | rtmux-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 'resize.c')
-rw-r--r-- | resize.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |