render: use cell cols from compose chain, not grapheme

fcft’s view of how many columns a grapheme cluster is may differ from
our own. Make sure the rendered glyph matches the number of columns
that were allocated when the cluster was printed.
This commit is contained in:
Daniel Eklöf 2021-06-24 10:08:58 +02:00
parent 34e85e7726
commit b14524215b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -570,10 +570,11 @@ render_cell(struct terminal *term, pixman_image_t *pix,
}
if (grapheme != NULL) {
cell_cols = composed->width;
composed = NULL;
glyphs = grapheme->glyphs;
glyph_count = grapheme->count;
cell_cols = grapheme->cols;
}
}