aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-25 17:32:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-02 18:13:51 +0000
commit3453f091a3349e6a977d69e07c1be6d3fe39c939 (patch)
tree1c607c84a0a19f39bd08ca77c7363c29cec0d1c8
parentgrid: set tp/uri break flags explicitly when we know them to be true (diff)
grid: fix col max calculation when row contains URI ranges
-rw-r--r--grid.c2
1 files changed, 1 insertions, 1 deletions
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;