summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-03-17 19:18:37 +0000
committernicm <nicm@openbsd.org>2012-03-17 19:18:37 +0000
commitadf0212695f34497ea78b40f8a71b9f17398299e (patch)
tree46908554c5d491ed4cd037054d0bb8a2253e5798 /usr.bin/tmux/tty.c
parentTweak last fix to actually hit the right end of pane. (diff)
downloadwireguard-openbsd-adf0212695f34497ea78b40f8a71b9f17398299e.tar.xz
wireguard-openbsd-adf0212695f34497ea78b40f8a71b9f17398299e.zip
Use the region lower not the pane size to work out where the bottom line
is.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index a76fd2864c7..b01fb818211 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.124 2012/03/17 18:51:50 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.125 2012/03/17 19:18:37 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 - 1)
+ if (ctx->ocy != wp->yoff + wp->screen->rlower)
tty_cursor_pane(tty, ctx, 0, ctx->ocy + 1);
else
tty_cursor_pane(tty, ctx, 0, ctx->ocy);