version 1.214, 2016/11/15 15:17:28 |
version 1.215, 2016/11/16 13:31:22 |
|
|
* off the edge - if so, move the cursor back to the right. |
* off the edge - if so, move the cursor back to the right. |
*/ |
*/ |
if (ctx->xoff + ctx->ocx > tty->rright) |
if (ctx->xoff + ctx->ocx > tty->rright) |
tty_cursor(tty, tty->rright, ctx->yoff + ctx->ocy); |
tty_cursor(tty, tty->rright, tty->rlower); |
else |
else |
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); |
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); |
|
|
|
|
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
u_int cx, width; |
u_int cx, width; |
|
|
if (ctx->ocy == ctx->orlower) |
if (ctx->xoff + ctx->ocx > tty->sx - 1 && |
|
ctx->yoff + ctx->ocy == ctx->orlower && |
|
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 |
|
tty_region_off(tty); |
tty_margin_off(tty); |
tty_margin_off(tty); |
|
|
/* Is the cursor in the very last position? */ |
/* Is the cursor in the very last position? */ |