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. --- grid.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'grid.h') diff --git a/grid.h b/grid.h index b074381e..cbe60536 100644 --- a/grid.h +++ b/grid.h @@ -10,7 +10,9 @@ void grid_reflow( struct grid *grid, int new_rows, int new_cols, int old_screen_rows, int new_screen_rows, size_t tracking_points_count, - struct coord *const tracking_points[static tracking_points_count]); + struct coord *const tracking_points[static tracking_points_count], + size_t compose_count, + const struct composed composed[static compose_count]); static inline int grid_row_absolute(const struct grid *grid, int row_no) -- cgit v1.3