summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-10-12 09:09:35 +0000
committernicm <nicm@openbsd.org>2009-10-12 09:09:35 +0000
commit271e8a4d817ca4dd1e849c328e3956fdced62344 (patch)
tree6aa97ae47d5cf3edc442da809fce72799d4b0137 /usr.bin/tmux/server.c
parentanother cert that makes godaddy.com and launchpad.net (among others) happy. (diff)
downloadwireguard-openbsd-271e8a4d817ca4dd1e849c328e3956fdced62344.tar.xz
wireguard-openbsd-271e8a4d817ca4dd1e849c328e3956fdced62344.zip
Cleanup: use two functions for region setting, one for absolute and one inside
pane.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 094ce14388f..4884a4a3f77 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.55 2009/10/11 10:04:27 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.56 2009/10/12 09:09:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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