diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-06-02 17:30:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-02 18:13:52 +0000 |
| commit | 3292bb5b8eaddb8a0354387fcc2d8f9ffd0d1ac4 (patch) | |
| tree | 43ea9c5ec3a29da2de473f3d0e1c5e963258cacb /grid.c | |
| parent | selection: fix bad assertion (diff) | |
grid: reflow: ‘amount’ has already been added to ‘from’
Diffstat (limited to 'grid.c')
| -rw-r--r-- | grid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
