mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04: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
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* Rendering into the right margin area with `tweak.overflowing-glyphs`
|
||||||
|
enabled.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
### Contributors
|
### 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;
|
int render_width = cell_cols * width;
|
||||||
if (term->conf->tweak.overflowing_glyphs &&
|
if (term->conf->tweak.overflowing_glyphs &&
|
||||||
glyph_count > 0)
|
glyph_count > 0 &&
|
||||||
|
cols_left > cell_cols)
|
||||||
{
|
{
|
||||||
int glyph_width = 0, advance = 0;
|
int glyph_width = 0, advance = 0;
|
||||||
for (size_t i = 0; i < glyph_count; i++) {
|
for (size_t i = 0; i < glyph_count; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue