diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-25 19:54:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-25 19:54:05 +0000 |
| commit | 8ffa0f731b6a3bc11afef4cee78ef25f037fe168 (patch) | |
| tree | 922007107b84fbe4959de4c9fae1971511dcb4c4 /grid.c | |
| parent | wayland: 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
