From b2282f243b44975618cd4626b23d41aa1037813c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 13 Feb 2009 19:45:16 +0000 Subject: [PATCH] Use the right row when calling RI. --- tty.c | 4 ++-- 1 file 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 @@ -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); } }