From 61f950f77ac52779b5fcf34c628df4caee791af4 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 6 Sep 2020 19:14:46 +0200 Subject: grid: reflow: calculate width of composed characters correctly Before this patch, reflow called `wcwidth()` on our magic values for composed characters. --- render.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'render.c') 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); -- cgit v1.3