diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-28 15:41:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-02 18:13:51 +0000 |
| commit | ef1fdc40c8fd10411e7c40e0fe0d6982a702f505 (patch) | |
| tree | d297380d74448629e034d2e92111b8d159897063 /grid.c | |
| parent | grid: reflow: avoid unnecessary if-statements before chunking a row (diff) | |
grid: reflow: check the *entire* row for non-empty cells
Diffstat (limited to 'grid.c')
| -rw-r--r-- | grid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -523,7 +523,7 @@ grid_resize_and_reflow( /* Find last non-empty cell */ int col_count = 0; - for (int c = old_cols - 1; c > 0; c--) { + for (int c = old_cols - 1; c >= 0; c--) { const struct cell *cell = &old_row->cells[c]; if (!(cell->wc == 0 || cell->wc == CELL_SPACER)) { col_count = c + 1; |
