mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
Merge branch 'prevent-overflow-into-margin'
This commit is contained in:
commit
029920ddcc
2 changed files with 7 additions and 1 deletions
|
|
@ -35,6 +35,11 @@
|
|||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
||||
* Rendering into the right margin area with `tweak.overflowing-glyphs`
|
||||
enabled.
|
||||
|
||||
|
||||
### Security
|
||||
### Contributors
|
||||
|
||||
|
|
|
|||
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