aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-12 09:09:35 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-12 09:09:35 +0000
commitf05b32f7adc7de4dac3afa59ce91986202f17769 (patch)
treef2d2102cf9a1a64ed6618acef3136b7c6370cd21 /server.c
parent0a2a3544993a569e277f893ddac610313a42bfde (diff)
downloadrtmux-f05b32f7adc7de4dac3afa59ce91986202f17769.tar.gz
rtmux-f05b32f7adc7de4dac3afa59ce91986202f17769.tar.bz2
rtmux-f05b32f7adc7de4dac3afa59ce91986202f17769.zip
Cleanup: use two functions for region setting, one for absolute and one inside
pane.
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 18152b85..fab8d886 100644
--- a/server.c
+++ b/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