diff options
author | nicm <nicm> | 2016-11-15 14:02:32 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-11-15 14:02:32 +0000 |
commit | 0ace779cde0bc6c68a2cbc66986162e7383f622c (patch) | |
tree | 8f6169b794ed45bbe0eb1418af22302fffd030db /server-client.c | |
parent | 9fe43d6acbc4468e3490f9a93df25b37c7dd18fa (diff) | |
download | rtmux-0ace779cde0bc6c68a2cbc66986162e7383f622c.tar.gz rtmux-0ace779cde0bc6c68a2cbc66986162e7383f622c.tar.bz2 rtmux-0ace779cde0bc6c68a2cbc66986162e7383f622c.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 'server-client.c')
-rw-r--r-- | server-client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c index b92bada5..29f3e08b 100644 --- a/server-client.c +++ b/server-client.c @@ -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) |