From e85257bcae116f5e6148e38690e2ec95b586d451 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 24 Nov 2022 17:09:31 +0100 Subject: term: initialize term->font_line_height when there’s no user-set line-height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terminal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 3af436a4..429a4cc3 100644 --- a/terminal.c +++ b/terminal.c @@ -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.; -- cgit v1.3