summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-02-08 22:42:08 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-02-08 22:42:08 +0000
commitb28e80d5f42b26699bf5938046f804d720efe471 (patch)
treea79b595ee7d6733b1ad71e8ff24e30ce211b501b /usr.bin/tmux/tty.c
parenta9e6ac575752e8e5549df77df10b7575c011b543 (diff)
Do not adjust region lower by pane offset when scrolling up, it is
already an absolute position.
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 49e68a880a2..9936fca482a 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.240 2017/02/08 17:31:09 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.241 2017/02/08 22:42:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1040,7 +1040,7 @@ tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)
tty_margin_pane(tty, ctx);
if (ctx->num == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
- tty_cursor(tty, tty->rright, ctx->yoff + tty->rlower);
+ tty_cursor(tty, tty->rright, tty->rlower);
for (i = 0; i < ctx->num; i++)
tty_putc(tty, '\n');
} else