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).
This commit is contained in:
nicm
2016-11-15 15:17:28 +00:00
parent d81a5c630f
commit c34a79b152
3 changed files with 38 additions and 18 deletions

View File

@ -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)