From 3453f091a3349e6a977d69e07c1be6d3fe39c939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 25 May 2021 19:32:25 +0200 Subject: [PATCH] grid: fix col max calculation when row contains URI ranges --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.c b/grid.c index 4f1223dc..b1b8c57a 100644 --- a/grid.c +++ b/grid.c @@ -542,7 +542,7 @@ grid_resize_and_reflow( if (tp != NULL) col_count = max(col_count, tp->col + 1); if (range != NULL) - col_count = max(col_count, range->start + 1); + col_count = max(col_count, range->end + 1); for (int start = 0, left = col_count; left > 0;) { int tp_col = -1;