render: don’t look at glyphs[0]->cols when determining if overflow should be allowed

Use ‘cell_cols’ instead, which is the number of cells we’ll actually
be using.
This commit is contained in:
Daniel Eklöf 2021-06-30 18:01:03 +02:00
parent 3e74482d6c
commit cf46acc68f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -617,7 +617,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
*/
if (term->conf->tweak.allow_overflowing_double_width_glyphs &&
((glyph_count > 0 &&
glyphs[0]->cols == 1 &&
cell_cols == 1 &&
glyphs[0]->width >= term->cell_width * 15 / 10 &&
glyphs[0]->width < 3 * term->cell_width &&
col < term->cols - 1) ||