diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-06 17:14:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-09-06 17:14:46 +0000 |
| commit | 61f950f77ac52779b5fcf34c628df4caee791af4 (patch) | |
| tree | b28e8bdc5367a1a546fce33f653d869008d4a57b /render.c | |
| parent | changelog: scrollback indicator did not exist in 1.4(.4) (diff) | |
grid: reflow: calculate width of composed characters correctly
Before this patch, reflow called `wcwidth()` on our magic values for
composed characters.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2110,12 +2110,14 @@ maybe_resize(struct terminal *term, int width, int height, bool force) grid_reflow( &term->normal, new_normal_grid_rows, new_cols, old_rows, new_rows, term->grid == &term->normal ? ALEN(tracking_points) : 0, - term->grid == &term->normal ? tracking_points : NULL); + term->grid == &term->normal ? tracking_points : NULL, + term->composed_count, term->composed); grid_reflow( &term->alt, new_alt_grid_rows, new_cols, old_rows, new_rows, term->grid == &term->alt ? ALEN(tracking_points) : 0, - term->grid == &term->alt ? tracking_points : NULL); + term->grid == &term->alt ? tracking_points : NULL, + term->composed_count, term->composed); /* Reset tab stops */ tll_free(term->tab_stops); |
