From ac712f5d2d00afa830d8ac5fbc213a9f29f4d7cb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Jun 2024 11:33:22 +0530 Subject: [PATCH] ... --- kitty/fonts/__init__.py | 4 +--- kitty/options/parse.py | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/kitty/fonts/__init__.py b/kitty/fonts/__init__.py index c134a1cf2..685148f80 100644 --- a/kitty/fonts/__init__.py +++ b/kitty/fonts/__init__.py @@ -200,9 +200,7 @@ class FontSpec(NamedTuple): def __str__(self) -> str: return self.as_setting - def __repr__(self) -> str: - return repr(str(self)) - + # Cannot change __repr__ as it will break config generation Descriptor = Union[FontConfigPattern, CoreTextFont] diff --git a/kitty/options/parse.py b/kitty/options/parse.py index 93dbd9899..f45d24a4c 100644 --- a/kitty/options/parse.py +++ b/kitty/options/parse.py @@ -17,8 +17,9 @@ from kitty.options.utils import ( paste_actions, remote_control_password, resize_debounce_time, scrollback_lines, scrollback_pager_history_size, shell_integration, store_multiple, symbol_map, tab_activity_symbol, tab_bar_edge, tab_bar_margin_height, tab_bar_min_tabs, tab_fade, tab_font_style, tab_separator, - tab_title_template, titlebar_color, to_cursor_shape, to_font_size, to_layout_names, to_modifiers, - url_prefixes, url_style, visual_window_select_characters, window_border_width, window_size, window_logo_scale + tab_title_template, titlebar_color, to_cursor_shape, to_cursor_unfocused_shape, to_font_size, + to_layout_names, to_modifiers, url_prefixes, url_style, visual_window_select_characters, + window_border_width, window_logo_scale, window_size )