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:
@@ -708,8 +708,8 @@ void term_putchar (unsigned char c)
|
|||||||
void term_reset (void)
|
void term_reset (void)
|
||||||
{
|
{
|
||||||
if (current_term->TI_csr)
|
if (current_term->TI_csr)
|
||||||
tputs_x(tparm2(current_term->TI_csr, 0, current_term->TI_lines - 1));
|
tputs_x(tparm2(current_term->TI_csr, 0, current_term->li - 1));
|
||||||
term_gotoxy(0, current_term->TI_lines - 1);
|
term_gotoxy(0, current_term->li - 1);
|
||||||
#if use_alt_screen
|
#if use_alt_screen
|
||||||
if (current_term->TI_rmcup)
|
if (current_term->TI_rmcup)
|
||||||
tputs_x(current_term->TI_rmcup);
|
tputs_x(current_term->TI_rmcup);
|
||||||
|
|||||||
Reference in New Issue
Block a user