diff options
author | nicm <nicm> | 2017-01-11 23:10:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-11 23:10:04 +0000 |
commit | 74c40d04eadc40c034634d70925355a0751c1433 (patch) | |
tree | fd5c42cf496134c9026b424811028eb6468cd263 | |
parent | 3bb14001b9a9a5665c7dcac542dc49841e1b3c58 (diff) | |
download | rtmux-74c40d04eadc40c034634d70925355a0751c1433.tar.gz rtmux-74c40d04eadc40c034634d70925355a0751c1433.tar.bz2 rtmux-74c40d04eadc40c034634d70925355a0751c1433.zip |
Be less aggressive about turning margins off.
-rw-r--r-- | tty.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1133,13 +1133,12 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx) 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); + 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; |