Be less aggressive about turning margins off.

pull/717/merge
nicm 2017-01-11 23:10:04 +00:00
parent 3bb14001b9
commit 74c40d04ea
1 changed files with 6 additions and 7 deletions

13
tty.c
View File

@ -1133,13 +1133,12 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
struct screen *s = wp->screen; struct screen *s = wp->screen;
u_int cx, width; u_int cx, width;
if (ctx->xoff + ctx->ocx > tty->sx - 1 && if (ctx->xoff + ctx->ocx > tty->sx - 1 && ctx->ocy == ctx->orlower) {
ctx->ocy == ctx->orlower && if (tty_pane_full_width(tty, ctx))
tty_pane_full_width(tty, ctx)) tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); else
else tty_margin_off(tty);
tty_region_off(tty); }
tty_margin_off(tty);
/* Is the cursor in the very last position? */ /* Is the cursor in the very last position? */
width = ctx->cell->data.width; width = ctx->cell->data.width;