diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-10-09 14:12:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-10-10 15:19:18 +0000 |
| commit | 18ef36523f55cb8c8a6a9a9c3269274cc08c0a29 (patch) | |
| tree | 5e4c5030fd183984d7b80c32e94f2742497b14c1 | |
| parent | render: delayed reflow: not enough to damage current view; need to refresh too (diff) | |
grid: resize: assert grid->cur_row is not NULL after a grid resize
| -rw-r--r-- | grid.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -485,6 +485,8 @@ grid_resize_without_reflow( grid->saved_cursor.point = saved_cursor; grid->cur_row = new_grid[(grid->offset + cursor.row) & (new_rows - 1)]; + xassert(grid->cur_row != NULL); + grid->cursor.lcf = false; grid->saved_cursor.lcf = false; @@ -1047,6 +1049,8 @@ grid_resize_and_reflow( saved_cursor.col = min(saved_cursor.col, new_cols - 1); grid->cur_row = new_grid[(grid->offset + cursor.row) & (new_rows - 1)]; + xassert(grid->cur_row != NULL); + grid->cursor.point = cursor; grid->saved_cursor.point = saved_cursor; |
