mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -05:00
render: prevent cells from overflowing into margin
This commit is contained in:
parent
4a50abece3
commit
a410734f96
2 changed files with 7 additions and 1 deletions
3
render.c
3
render.c
|
|
@ -617,7 +617,8 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
*/
|
||||
int render_width = cell_cols * width;
|
||||
if (term->conf->tweak.overflowing_glyphs &&
|
||||
glyph_count > 0)
|
||||
glyph_count > 0 &&
|
||||
cols_left > cell_cols)
|
||||
{
|
||||
int glyph_width = 0, advance = 0;
|
||||
for (size_t i = 0; i < glyph_count; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue