Use current terminal size in term_reset()

Fixes a regression introduced by 70ac43ce77 where
the scroll region would be reset to the original terminal size, not current.
This commit is contained in:
Kevin Easton 2018-05-07 20:13:23 +10:00
parent caaba512c2
commit eb14b44413
1 changed files with 2 additions and 2 deletions

View File

@ -708,8 +708,8 @@ void term_putchar (unsigned char c)
void term_reset (void)
{
if (current_term->TI_csr)
tputs_x(tparm2(current_term->TI_csr, 0, current_term->TI_lines - 1));
term_gotoxy(0, current_term->TI_lines - 1);
tputs_x(tparm2(current_term->TI_csr, 0, current_term->li - 1));
term_gotoxy(0, current_term->li - 1);
#if use_alt_screen
if (current_term->TI_rmcup)
tputs_x(current_term->TI_rmcup);