aboutsummaryrefslogtreecommitdiff
path: root/grid.h
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 /grid.h
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 'grid.h')
-rw-r--r--grid.h4
1 files changed, 3 insertions, 1 deletions
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)