Cleanup: use two functions for region setting, one for absolute and one inside

pane.
This commit is contained in:
Nicholas Marriott
2009-10-12 09:09:35 +00:00
parent 0a2a354499
commit f05b32f7ad
3 changed files with 39 additions and 18 deletions

View File

@ -1050,8 +1050,9 @@ server_handle_client(struct client *c)
* tty_region/tty_reset/tty_update_mode already take care of not
* resetting things that are already in their default state.
*/
tty_region_absolute(&c->tty, 0, c->tty.sy - 1);
status = options_get_number(oo, "status");
tty_region(&c->tty, 0, c->tty.sy - 1, 0);
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status)
tty_cursor(&c->tty, 0, 0, 0, 0);
else