diff options
author | 2017-01-11 23:10:04 +0000 | |
---|---|---|
committer | 2017-01-11 23:10:04 +0000 | |
commit | d2fc18e450d625fa044fe8abbf2babd858aab72a (patch) | |
tree | 2a354c9ee43ef1b67b189a9c17efee8671dbe99e /usr.bin/tmux/tty.c | |
parent | Add empty sysctl.conf for arm64. (diff) | |
download | wireguard-openbsd-d2fc18e450d625fa044fe8abbf2babd858aab72a.tar.xz wireguard-openbsd-d2fc18e450d625fa044fe8abbf2babd858aab72a.zip |
Be less aggressive about turning margins off.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 76b768fc95e..900fd242f20 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.221 2017/01/11 22:36:07 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.222 2017/01/11 23:10:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; |