mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-17 00:51:36 +02:00
Cleanup: use two functions for region setting, one for absolute and one inside
pane.
This commit is contained in:
3
server.c
3
server.c
@ -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
|
||||
|
Reference in New Issue
Block a user