diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-06-30 16:01:03 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-30 16:01:03 +0000 |
| commit | cf46acc68f221aeac71bd2ef60a3beeeb0b3be47 (patch) | |
| tree | 3cc350c1450f2ca6634b0288a494c6d1a4b5b15f /render.c | |
| parent | terminfo: 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.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) || |
