From cf46acc68f221aeac71bd2ef60a3beeeb0b3be47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 30 Jun 2021 18:01:03 +0200 Subject: [PATCH] =?UTF-8?q?render:=20don=E2=80=99t=20look=20at=20glyphs[0]?= =?UTF-8?q?->cols=20when=20determining=20if=20overflow=20should=20be=20all?= =?UTF-8?q?owed?= 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) ||