mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Use the right row when calling RI.
This commit is contained in:
parent
488cec3149
commit
b2282f243b
4
tty.c
4
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>
|
* 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);
|
tty_region(tty, s->old_rupper, s->old_rlower, wp->yoff);
|
||||||
|
|
||||||
if (s->old_cy == s->old_rupper) {
|
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);
|
tty_putcode(tty, TTYC_RI);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user