aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-13 19:45:16 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-13 19:45:16 +0000
commitb2282f243b44975618cd4626b23d41aa1037813c (patch)
treec1a674b8c237f1d613d0670a30a96aba7b85ba49
parent488cec3149bfc10411ce7ff29bd70a1fb5e883e3 (diff)
downloadrtmux-b2282f243b44975618cd4626b23d41aa1037813c.tar.gz
rtmux-b2282f243b44975618cd4626b23d41aa1037813c.tar.bz2
rtmux-b2282f243b44975618cd4626b23d41aa1037813c.zip
Use the right row when calling RI.
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 3ae1b74a..3c3d3565 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.76 2009-02-13 17:09:55 nicm Exp $ */
+/* $Id: tty.c,v 1.77 2009-02-13 19:45:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -596,7 +596,7 @@ tty_cmd_reverseindex(struct tty *tty, struct window_pane *wp, unused va_list ap)
tty_region(tty, s->old_rupper, s->old_rlower, wp->yoff);
if (s->old_cy == s->old_rupper) {
- tty_cursor(tty, s->old_cx, 0, wp->yoff);
+ tty_cursor(tty, s->old_cx, s->old_rupper, wp->yoff);
tty_putcode(tty, TTYC_RI);
}
}