aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-30 16:01:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-30 16:01:03 +0000
commitcf46acc68f221aeac71bd2ef60a3beeeb0b3be47 (patch)
tree3cc350c1450f2ca6634b0288a494c6d1a4b5b15f
parentterminfo: add Tc, setrgbf and setrgbb capabilities (diff)
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.
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
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) ||