render: reflow: erase row when wrapping around the scrollback

This commit is contained in:
Daniel Eklöf 2020-02-14 19:03:13 +01:00
parent cb015d5eec
commit ec63a24c80
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1069,7 +1069,8 @@ reflow(struct terminal *term, struct row **new_grid, int new_cols, int new_rows,
if (new_row == NULL) {
new_row = grid_row_alloc(new_cols, true);
new_grid[new_row_idx] = new_row;
}
} else
memset(new_row->cells, 0, new_cols * sizeof(new_row->cells[0]));
new_row->dirty = true;
}