mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: reflow: ‘amount’ has already been added to ‘from’
This commit is contained in:
parent
cb83d60089
commit
3292bb5b8e
1 changed files with 1 additions and 1 deletions
2
grid.c
2
grid.c
|
|
@ -667,7 +667,7 @@ grid_resize_and_reflow(
|
|||
if (unlikely(spacers > 0)) {
|
||||
xassert(new_col_idx + spacers == new_cols);
|
||||
|
||||
const struct cell *cell = &old_row->cells[from + amount - 1];
|
||||
const struct cell *cell = &old_row->cells[from - 1];
|
||||
|
||||
for (int i = 0; i < spacers; i++, new_col_idx++) {
|
||||
new_row->cells[new_col_idx].wc = CELL_SPACER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue