summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-11-15 15:17:28 +0000
committernicm <nicm@openbsd.org>2016-11-15 15:17:28 +0000
commit4937b273ae76a33db27e8f099b75f5359c0c5f89 (patch)
tree609050faba520ef35ffa4161ba42eff1774d4935 /usr.bin/tmux/server-client.c
parentcheckfs: ignore nonexistent files and extend comment. There's actually no need (diff)
downloadwireguard-openbsd-4937b273ae76a33db27e8f099b75f5359c0c5f89.tar.xz
wireguard-openbsd-4937b273ae76a33db27e8f099b75f5359c0c5f89.zip
Turn on margins, with a couple of fixes (only limit to the pane for line
feeds, and do not move cursor to end for full width panes).
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 09e148174a6..5b1441050ac 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.198 2016/11/15 14:02:32 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.199 2016/11/15 15:17:28 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1003,8 +1003,8 @@ server_client_reset_state(struct client *c)
if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED))
return;
- tty_region(&c->tty, 0, c->tty.sy - 1);
- tty_margin(&c->tty, 0, c->tty.sx - 1);
+ tty_region_off(&c->tty);
+ tty_margin_off(&c->tty);
status = options_get_number(oo, "status");
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status)