From cf46acc68f221aeac71bd2ef60a3beeeb0b3be47 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 30 Jun 2021 18:01:03 +0200 Subject: render: don’t look at glyphs[0]->cols when determining if overflow should be allowed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use ‘cell_cols’ instead, which is the number of cells we’ll actually be using. --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.c b/render.c index d3e03b63..499303f0 100644 --- a/render.c +++ b/render.c @@ -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) || -- cgit v1.3