mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
grid: reflow: calculate width of composed characters correctly
Before this patch, reflow called `wcwidth()` on our magic values for composed characters.
This commit is contained in:
parent
f9cbdd3b11
commit
61f950f77a
4 changed files with 28 additions and 7 deletions
6
render.c
6
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue