aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-06 17:14:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-06 17:14:46 +0000
commit61f950f77ac52779b5fcf34c628df4caee791af4 (patch)
treeb28e8bdc5367a1a546fce33f653d869008d4a57b /render.c
parentchangelog: 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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render.c b/render.c
index ea21b808..8b26c751 100644
--- a/render.c
+++ b/render.c
@@ -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);