aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;