mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
3e74482d6c
commit
cf46acc68f
1 changed files with 1 additions and 1 deletions
2
render.c
2
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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue