=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.221 retrieving revision 1.222 diff -c -r1.221 -r1.222 *** src/usr.bin/tmux/tty.c 2017/01/11 22:36:07 1.221 --- src/usr.bin/tmux/tty.c 2017/01/11 23:10:04 1.222 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.221 2017/01/11 22:36:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.222 2017/01/11 23:10:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1133,1145 **** struct screen *s = wp->screen; u_int cx, width; ! if (ctx->xoff + ctx->ocx > tty->sx - 1 && ! ctx->ocy == ctx->orlower && ! tty_pane_full_width(tty, ctx)) ! tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); ! else ! tty_region_off(tty); ! tty_margin_off(tty); /* Is the cursor in the very last position? */ width = ctx->cell->data.width; --- 1133,1144 ---- struct screen *s = wp->screen; u_int cx, width; ! if (ctx->xoff + ctx->ocx > tty->sx - 1 && ctx->ocy == ctx->orlower) { ! if (tty_pane_full_width(tty, ctx)) ! tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); ! else ! tty_margin_off(tty); ! } /* Is the cursor in the very last position? */ width = ctx->cell->data.width;