Do not invoke clear check on respawn.

This commit is contained in:
Nicholas Marriott
2026-07-04 17:00:28 +01:00
parent 1d7021130d
commit a02e25ba01
4 changed files with 6 additions and 35 deletions

View File

@@ -99,12 +99,12 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
s->write_list = NULL;
s->hyperlinks = NULL;
screen_reinit(s);
screen_reinit(s, 1);
}
/* Reinitialise screen. */
void
screen_reinit(struct screen *s)
screen_reinit(struct screen *s, int check)
{
s->cx = 0;
s->cy = 0;
@@ -123,7 +123,8 @@ screen_reinit(struct screen *s)
s->saved_cy = UINT_MAX;
screen_reset_tabs(s);
grid_check_is_clear(s->grid);
if (check)
grid_check_is_clear(s->grid);
grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy, 8);
screen_clear_selection(s);