summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-11-15 14:02:32 +0000
committernicm <nicm@openbsd.org>2016-11-15 14:02:32 +0000
commitf00ac6e6da4e9969fb68d6a31effa474bb93ac24 (patch)
treebe75f549ac333e1b130ff22594c90b6a4ac325db /usr.bin/tmux/server-client.c
parentAdd support for lid state detection in ykbec(4). (diff)
downloadwireguard-openbsd-f00ac6e6da4e9969fb68d6a31effa474bb93ac24.tar.xz
wireguard-openbsd-f00ac6e6da4e9969fb68d6a31effa474bb93ac24.zip
Initial attempt to make use of left and right margins if the terminal
supports them (that is, if it advertises itself as a VT420 - probably just xterm). These are the vertical equivalent of the scroll region and allow much faster scrolling of panes that do not take up the full width of the terminal.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index ed910d57a8d..09e148174a6 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.197 2016/10/19 09:22:07 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.198 2016/11/15 14:02:32 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1004,6 +1004,7 @@ server_client_reset_state(struct client *c)
return;
tty_region(&c->tty, 0, c->tty.sy - 1);
+ tty_margin(&c->tty, 0, c->tty.sx - 1);
status = options_get_number(oo, "status");
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status)