aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-10-15 01:26:50 +0000
committerTiago Cunha <tcunha@gmx.com>2009-10-15 01:26:50 +0000
commit9b771a96f0a6fb7aeeef565e1c9499a2c6a95f07 (patch)
tree86f802549862d8d3ad29c8623f34781b7af8b0f3 /server.c
parentf8f2421ac36dbcb8facdb30b25b837d81c6725ef (diff)
downloadrtmux-9b771a96f0a6fb7aeeef565e1c9499a2c6a95f07.tar.gz
rtmux-9b771a96f0a6fb7aeeef565e1c9499a2c6a95f07.tar.bz2
rtmux-9b771a96f0a6fb7aeeef565e1c9499a2c6a95f07.zip
Sync OpenBSD patchset 391:
Cleanup: use two functions for region setting, one for absolute and one inside pane.
Diffstat (limited to 'server.c')
-rw-r--r--server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.c b/server.c
index 0f9a0f4d..670035a9 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.206 2009-10-12 00:35:08 tcunha Exp $ */
+/* $Id: server.c,v 1.207 2009-10-15 01:26:50 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1053,8 +1053,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