From 3292bb5b8eaddb8a0354387fcc2d8f9ffd0d1ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 2 Jun 2021 19:30:01 +0200 Subject: [PATCH] =?UTF-8?q?grid:=20reflow:=20=E2=80=98amount=E2=80=99=20ha?= =?UTF-8?q?s=20already=20been=20added=20to=20=E2=80=98from=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.c b/grid.c index d3edd2f0..4419434c 100644 --- a/grid.c +++ b/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;