From 6ea4bfa4332e61fba5487cbba881af1199708776 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Oct 2025 09:00:13 +0530 Subject: [PATCH] Fix #9100 --- kitty/options/to-c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/options/to-c.h b/kitty/options/to-c.h index f179c8499..ac24696f9 100644 --- a/kitty/options/to-c.h +++ b/kitty/options/to-c.h @@ -245,7 +245,7 @@ parse_font_mod_size(PyObject *val, float *sz, AdjustmentUnit *unit) { static inline void modify_font(PyObject *mf, Options *opts) { -#define S(which) { PyObject *v = PyDict_GetItemString(mf, #which); if (v) parse_font_mod_size(v, &opts->which.val, &opts->which.unit); } +#define S(which) { PyObject *v = PyDict_GetItemString(mf, #which); if (v) parse_font_mod_size(v, &opts->which.val, &opts->which.unit); else zero_at_ptr(&opts->which); } S(underline_position); S(underline_thickness); S(strikethrough_thickness); S(strikethrough_position); S(cell_height); S(cell_width); S(baseline); #undef S