term: initialize term->font_line_height when there’s no user-set line-height

This commit is contained in:
Daniel Eklöf 2022-11-24 17:09:31 +01:00
parent 94bac0513a
commit e85257bcae
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -709,8 +709,11 @@ term_line_height_update(struct terminal *term)
{
const struct config *conf = term->conf;
if (term->conf->line_height.px < 0)
if (term->conf->line_height.px < 0) {
term->font_line_height.pt = 0;
term->font_line_height.px = -1;
return;
}
const float dpi = term->font_is_sized_by_dpi ? term->font_dpi : 96.;