render: reflow: no need to clear cells

We set initialize=true when allocating a new row. This initializes the
cell to 0, with clean=1.
This commit is contained in:
Daniel Eklöf 2020-02-10 20:46:02 +01:00
parent 61b43620fc
commit 80e8f91270
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1034,8 +1034,7 @@ reflow(struct terminal *term, struct row **new_grid, int new_cols, int new_rows,
}
}
new_row->cells[new_col_idx].attrs.clean = 1;
new_row->cells[new_col_idx++] = (struct cell){0};
new_col_idx++;
}
empty_count = 0;