grid: fix col max calculation when row contains URI ranges

This commit is contained in:
Daniel Eklöf 2021-05-25 19:32:25 +02:00
parent a56b54ad2f
commit 3453f091a3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
grid.c
View file

@ -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;