mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
render: reflow: initial line is always unallocated
This commit is contained in:
parent
b0f98a9d0c
commit
8d262e71c1
1 changed files with 5 additions and 5 deletions
10
render.c
10
render.c
|
|
@ -978,11 +978,11 @@ reflow(struct terminal *term, struct row **new_grid, int new_cols, int new_rows,
|
||||||
int new_row_idx = 0;
|
int new_row_idx = 0;
|
||||||
|
|
||||||
struct row *new_row = new_grid[new_row_idx];
|
struct row *new_row = new_grid[new_row_idx];
|
||||||
if (new_row == NULL) {
|
|
||||||
new_row = grid_row_alloc(new_cols, true);
|
assert(new_row == NULL);
|
||||||
new_row->dirty = true;
|
new_row = grid_row_alloc(new_cols, true);
|
||||||
new_grid[new_row_idx] = new_row;
|
new_row->dirty = true;
|
||||||
}
|
new_grid[new_row_idx] = new_row;
|
||||||
|
|
||||||
/* Start at the beginning of the old grid's scrollback. That is,
|
/* Start at the beginning of the old grid's scrollback. That is,
|
||||||
* at the output that is *oldest* */
|
* at the output that is *oldest* */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue