aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-25 19:54:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-25 19:54:05 +0000
commit8ffa0f731b6a3bc11afef4cee78ef25f037fe168 (patch)
tree922007107b84fbe4959de4c9fae1971511dcb4c4 /grid.c
parentwayland: rename variable ‘main’ to ‘main_surface’ (diff)
grid: reflow_uri_ranges(): URI end point is *inclusive*
Which means, when we match URI start and end points against the current column index, we must *not* use ‘if...else if’, but two ‘if... if’. Fixes an assertion when resizing a window with an URI range of just one cell.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grid.c b/grid.c
index 00890a1d..21cad71f 100644
--- a/grid.c
+++ b/grid.c
@@ -210,7 +210,7 @@ reflow_uri_ranges(const struct row *old_row, struct row *new_row,
grid_row_add_uri_range(new_row, new_range);
}
- else if (it->item.end == old_col_idx) {
+ if (it->item.end == old_col_idx) {
xassert(new_row->extra != NULL);
bool found_it = false;