From 0ace779cde0bc6c68a2cbc66986162e7383f622c Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 15 Nov 2016 14:02:32 +0000 Subject: 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. --- server-client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'server-client.c') 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) -- cgit