If we resize our screen, we guarantee that all cells are allocated. This
hasn't been true in the early times so we needed an empty cell during
rendering as fallback. It's no longer needed so remove it.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
int ret, warned = 0;
const uint32_t *ch;
size_t len;
- struct cell empty;
bool in_sel = false, sel_start = false, sel_end = false;
bool was_sel = false;
if (!con || !draw_cb)
return;
- cell_init(con, &empty);
-
cur_x = con->cursor_x;
if (con->cursor_x >= con->size_x)
cur_x = con->size_x - 1;
}
for (j = 0; j < con->size_x; ++j) {
- if (j < line->size)
- cell = &line->cells[j];
- else
- cell = ∅
+ cell = &line->cells[j];
memcpy(&attr, &cell->attr, sizeof(attr));
if (con->sel_active) {