diff options
author | 2012-03-17 18:51:50 +0000 | |
---|---|---|
committer | 2012-03-17 18:51:50 +0000 | |
commit | 653bc0befd32737c20aa2e4c54e0bce17dac63ef (patch) | |
tree | 930e26564a37b5784df4b6469b96c1d5e6583429 /usr.bin/tmux/tty.c | |
parent | Fix warnings. Doh. (diff) | |
download | wireguard-openbsd-653bc0befd32737c20aa2e4c54e0bce17dac63ef.tar.xz wireguard-openbsd-653bc0befd32737c20aa2e4c54e0bce17dac63ef.zip |
Tweak last fix to actually hit the right end of pane.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 11b50f4f6fd..a76fd2864c7 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.123 2012/03/17 18:24:07 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.124 2012/03/17 18:51:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1001,7 +1001,7 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx) * The pane doesn't fill the entire line, the linefeed * will already have happened, so just move the cursor. */ - if (ctx->ocy != wp->yoff + wp->sy) + if (ctx->ocy != wp->yoff + wp->sy - 1) tty_cursor_pane(tty, ctx, 0, ctx->ocy + 1); else tty_cursor_pane(tty, ctx, 0, ctx->ocy); |