mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: reflow: check the *entire* row for non-empty cells
This commit is contained in:
parent
c2314d689e
commit
ef1fdc40c8
1 changed files with 1 additions and 1 deletions
2
grid.c
2
grid.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue