mirror of https://github.com/tmux/tmux.git
vte is buggy and doesn't home the cursor after changing the scroll
region. Several people are hitting this, so add a workaround.pull/1/head
parent
e755475475
commit
796eb522ac
4
tty.c
4
tty.c
|
@ -1006,10 +1006,8 @@ tty_region(struct tty *tty, u_int rupper, u_int rlower)
|
||||||
if (tty->cx >= tty->sx)
|
if (tty->cx >= tty->sx)
|
||||||
tty_cursor(tty, 0, tty->cy);
|
tty_cursor(tty, 0, tty->cy);
|
||||||
|
|
||||||
tty->cx = 0;
|
|
||||||
tty->cy = 0;
|
|
||||||
|
|
||||||
tty_putcode2(tty, TTYC_CSR, tty->rupper, tty->rlower);
|
tty_putcode2(tty, TTYC_CSR, tty->rupper, tty->rlower);
|
||||||
|
tty_cursor(tty, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move cursor inside pane. */
|
/* Move cursor inside pane. */
|
||||||
|
|
Loading…
Reference in New Issue